Re: Memory problems

From: Ollivier Robert <[email protected]>
Date: Thu, 28 Nov 1996 12:25:18 +0100

According to Martin Gleeson:
> As far as I'm aware, no implementations of malloc do this. They just free
> the memory back to malloc for the next time you ask for it. To free it back
> to the OS would require some sort of hook in the OS to handle that sort of
> thing. And I'm not aware of any OS/malloc combos that will do this. But of
> course I reserve the right to be completely wrong :-)

GNUmalloc is supposed to do that with sbrk(2).

Phkmalloc in FreeBSD 2.2 is doing the same with the use of madvice(2) and
telling FreeBSD that the poage is free and usable by the VM system.
 

-- 
Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
Received on Thu Nov 28 1996 - 05:47:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:40 MST