Peter Schuller <peter.schuller_at_infidyne.com> writes: > The problem with malloc() being that, unless I am missing something, > malloc will never be able to give back memory to the kernel except > insofar as the memory mapped is continuously unused between some > location and the break (in the case of sbrk()) or over the entire > range (mmap()). Actually, malloc(3) can use madvise(2) to notify the kernel that arbitrary pages in the arena are unused and can be discarded. The current implementation will do so if the H option is specified. DES -- Dag-Erling Smørgrav - des_at_des.noReceived on Tue Jan 08 2008 - 17:37:04 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC