This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Heap allocation on Linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]