multiple heaps with dlmalloc
Posted: Fri Mar 24, 2006 6:39 pm
For ease of development, I'm currently using Doug Lea's malloc as my byte granularity memory allocator.
I'm curious, however, if anybody has hacked this allocator to allow for multiple heaps to allow something like:
void *memoryAllocate(int heapNum, int size);
Where heapNum references various different heaps (perhaps one for basic OS structures, one for shared memory, etc).
I haven't actually looked into what might be required, yet. I'm just curious to know if its been done before, and to perhaps get some advice on it, before actually attempting it.
Thanks,
Jeff
I'm curious, however, if anybody has hacked this allocator to allow for multiple heaps to allow something like:
void *memoryAllocate(int heapNum, int size);
Where heapNum references various different heaps (perhaps one for basic OS structures, one for shared memory, etc).
I haven't actually looked into what might be required, yet. I'm just curious to know if its been done before, and to perhaps get some advice on it, before actually attempting it.
Thanks,
Jeff