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

Zoltan Varga vargaz at gmail.com
Thu Aug 20 08:38:57 EDT 2009


Hi,

  It might be a good idea to ask the libgc mailing list as to why this isn't
done in the first place.

                              Zoltan

On Thu, Aug 13, 2009 at 8:16 PM, Dick Porter <dick at acm.org> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090820/d4013305/attachment.html 


More information about the Mono-devel-list mailing list