[Gc] Can GC return unused pages to the OS?

Jeff Sturm jsturm at one-point.com
Mon Feb 16 18:28:27 PST 2004

Have you tried building the collector with -DUSE_MUNMAP?


On Mon, 16 Feb 2004, Alec Orr wrote:
> Some of our embedded device C applications have a few operations which
> require a high one-time volume of memory, and then release it.  These
> operations are scheduled, and intermittant (occur once every few hours,
> or days).  Is there a way to explicitly force (or ask with strong
> language) the garbage collector to coalesce and return unused memory
> pages to the operating system?  It would be nice of this could be
> enabled/disabled using a toggle, but if that can't be done - so be it.
> We realize there could be a high performance impact in doing this.
> We realize this may not be possible on some platforms.
> We already use the GC_dont_expand variable=1 , and strategic calls to
> GC_gcollect().
> Thank you for your time,
> Alec Orr
> WBEM Solutions
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> https://www.hpl.hp.com/hosted/linux/mail-archives/gc/

More information about the Gc mailing list