[Mono-list] How to use the Boehm garbage collector

Jonathan Pryor jonpryor@vt.edu
Mon, 03 May 2004 17:41:52 -0400

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.


(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