开发者

memory manager that manages a pre allocated block

I'm trying to find a memory management library for C++ that would allocate from an pre-allocated memory block i give it in order to initialise it. After i'm done i will close the allocator (and objects) and free the preallocated block

does something like this a开发者_如何转开发lready exists?


There are many such allocators. dlmalloc is one of the most popular (and it's worked well for us). Doug Lea has malloc.c and malloc.h available for download, and there are also several derivatives of his original code that are packaged up in possibly more convenient ways, such as ptmalloc.


you may be interested in loki's allocators:

http://sourceforge.net/projects/loki-lib/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜