[Mono-bugs] [Bug 79653][Nor] Changed - System.Security.Cryptography.CryptoConfig:LoadConfig reads config in one big blob
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Oct 12 19:49:25 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by joeshaw at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79653
--- shadow/79653 2006-10-12 19:17:37.000000000 -0400
+++ shadow/79653.tmp.13158 2006-10-12 19:49:25.000000000 -0400
@@ -1,12 +1,12 @@
Bug#: 79653
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details:
-Status: NEEDINFO
+Status: REOPENED
Resolution:
Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: sebastien at ximian.com
ReportedBy: joeshaw at novell.com
@@ -144,6 +144,17 @@
I don't have heap-buddy installed but I'm curious what results would
this sample code produce :-)
In the mean time I'll update the code to use the newer small-XML
parser (and a TextReader) and see the changes in mono allocation profiler.
+
+------- Additional Comments From joeshaw at novell.com 2006-10-12 19:49 -------
+Running heap-buddy on that gives me the same backtrace, called 4 times.
+
+Note that the stack trace doesn't mean that CryptoConfig:LoadConfig()
+is called 4 times, but that strings are allocated from
+System.Text.StringBuilder:InternalEnsureCapacity() 4 times, and that
+the total allocated memory is 120k.
+
+In any case, avoiding the StreamReader and reading the entire contents
+into a StringBuilder is probably the way to fix this, as you suggest.
More information about the mono-bugs
mailing list