This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Heap allocation on Linux
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 6 Dec 2004 11:55:38 -0800
- Subject: Re: Heap allocation on Linux
- References: <41B4AE5C.9070804@rptec.ch>
On Mon, Dec 06, 2004 at 08:09:16PM +0100, Jean-Eric wrote:
> The problem is:
> - Allocating block A (brk() is called to extend virtual address space)
> [...]
> - Mem used is X
> - Releasing block A
> [...]
> - Mem used is still X
> ... What would be good is a mmap() based allocator:
> - Allocate an mmap chunk
> - Allocate from it
> - munmap it when all blocks are freed
I'm working on something like that, but slowly. Is there any money
available? I know people who work faster than I can find time for.
Nathan Myers
ncm@cantrip.org