[Mono-dev] [PATCH] Cause libgc to return some unused memory to the system

pablosantosluac at terra.es pablosantosluac at terra.es
Mon Aug 24 05:38:49 EDT 2009

We tested it on our Plastic SCM load tests and it worked as expected.



Dick Porter wrote:
> Hi all
> Attached is a patch to libgc that will allow it to actually unmap memory
> when USE_MUNMAP is defined.  Currently, the unmap code just sets the
> mmap flags on a region to 'no access'.  The patch unlinks blocks from
> the gc free list larger than a defined min size (currently 4k bytes),
> that haven't been used for several collections, and unmaps the memory.
> It may or may not fix https://bugzilla.novell.com/show_bug.cgi?id=495486
> - the reporter forgot to attach his test case.
> Comments?
> - Dick
> ------------------------------------------------------------------------
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list