This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: free() does not physically trim/reclaim memory


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.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]