free() does not physically trim/reclaim memory

Florian Weimer
Mon Sep 12 12:52:00 GMT 2016

On 09/09/2016 10:09 PM, Shuxin Yang wrote:
> Hi,  Florian:
>    Could you please elaborate bit more about the "traditional way"?

Try to allocate as much low memory as possible using a loop which calls 
mmap with PROT_NONE and a pointer hint.  This is how OpenJDK and others 
do it.


More information about the Libc-help mailing list