[Mono-devel-list] Garbage Collection problem

Paolo Molaro lupus at ximian.com
Mon Oct 6 10:30:55 EDT 2003


On 10/06/03 Jörg Rosenkranz wrote:
> > And, yes, the GC after a while will free also the heap memory, but
> > applications shouldn't expect it to happen at any particular 
> > time: it's
> > not their business to care about that:-)
> > 
> 
> What intervals are we speaking of: seconds, minutes, weeks? ;-)
> Our application runs several days and the garbage collector heap
> seems to stay at it's peak value.

It depends on the number of garbage collections, so ultimately on
how much your app uses memory/triggers collections.
It seems that code is enabled only when USE_UNMAP is defined
and we currently don't enable it in the default build.
Care to try it out in your copy and report any issues/results?
You'd just need to add:
AC_DEFINE(USE_UNMAP)
somewhere in the configure.in file in libgc/ and
reautogen/reconfigure/rebuild.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list