[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: memory leak?
From: Bernd Gehrmann <bernd () physik ! hu-berlin ! de>
Date: 1999-11-02 21:12:53
[Download RAW message or body]
On Tue, 02 Nov 1999 Josef Weidendorfer wrote:
>>It is possible to force memory to be returned to the OS by malloc'ing
>>memory in big enough chunks. If you allocate
>>e.g. 64Kb this will be returned to the OS immediately once you free it.
>
>Are you really sure about this?
>It depend's on the malloc implementation of libc.
Right, it depends on the implementation. glibc has a twofold
strategie: little blocks are allocated (with some bookkeeping)
in the program's heap (which is - when needed - extended via
brk()), big blocks are allocated via mmap().
Bernd.
P.S. Please don't use Reply-To headers on a mailinglist.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic