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

Dick Porter dick at acm.org
Thu Aug 13 14:16:37 EDT 2009

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.


- Dick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgc-diff
Type: text/x-patch
Size: 4001 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090813/fda0546c/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090813/fda0546c/attachment-0001.bin 

More information about the Mono-devel-list mailing list