Can malloc/free allocate from a specified memory range?
> Using mmap to share data between processes leads to the requirement to > dynamically allocate and free shared memory blocks. I don’t want to > mmap each block separately, but prefer to allocate and free the memory > from within the mapped region. Is there a way to redirect malloc/free > library functions to allocate from a specified memory range, instead of > the heap? > > I don’t want to mmap each block separately or to use shmget because of > the cost of so many mappings. > > -K The mmalloc package at: http://sources.redhat.com/gdb/5/onlinedocs/mmalloc.html might be a good starting point.