bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to return memory to OS?


From: Petter Reinholdtsen
Subject: Re: Is there a way to return memory to OS?
Date: Thu, 21 Apr 2005 08:56:02 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v)

[Hao Xia]
> I have some temporary data has to be released and give the memory
> back to OS.

For large memory blocks, the GNU libc malloc() will use mmap to get
the memory from the operating system, and this memory will be given
back to the operating system when free() is called.

The GNU libc malloc() is based on code from Doug Lea.  You might want
to read his articles on memory management.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]