Re: [Gc] [Fwd: [Mono-dev] [PATCH] Cause libgc to return some unusedmemory to the system]
ivmai at mail.ru
Tue Sep 8 12:58:20 PDT 2009
"Boehm, Hans" <hans.boehm at hp.com> wrote:
> I think it's simpler to do what the collector should already do: Remap the "unmapped" pages with no permission, so that that the kernel can replace them with zero-filled pages, and they no longer need actual physical memory or disk space. This means we can remap the blocks when they're needed again. And we don't have to worry about the kernel mapping a new heap section or a newly loaded dynamic library into a hole in the middle of an old heap section. There are no doubt other design options, but I'm not sure they really improve matters.
BTW. My old Q: Should we add check for out-of-memory (in GC_remap) when we try to remap the blocks when they're needed again?
More information about the Gc