[Mono-list] How to use the Boehm garbage collector
Piers Haken
piersh@friskit.com
Mon, 3 May 2004 17:31:59 -0700
Rico also discusses this in his blog:
http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx.
Piers.
-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: Monday, May 03, 2004 2:42 PM
To: Marcus
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] How to use the Boehm garbage collector
On Mon, 2004-05-03 at 12:56, Marcus wrote:
> Also, my general obsevation for garbage collectors is that Collect()
> should be interpreted as a hint to the GC that now would be a good time to
collect.
It should be further noted that calling System.GC.Collect() should be
avoided if at all possible.
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
scalenetchapt05.asp
(Search for "Avoid Calling GC.Collect".)
The short version is that .NET's GC system is self-tuning. Manually calling
Collect() will alter its statistics, which can adversely affect application
performance.
- Jon
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list