are there any good memory pool libraries?

From: Andrei Voropaev (avorop_at_mail.ru)
Date: 06/30/04


Date: 30 Jun 2004 13:35:10 GMT

Hi!

I need to write a "sub-system" that would work in multi-threaded
enviroment in separate thread. It uses dynamic memory allocation, but
there can be situations where this thread shall immidiately exit. The
problem is that during the exit it shall somehow release all memory
allocated for its purpose so far. Keeping track of all pointers is
cumbersome. Much more attractive seems to be the idea of having memory
pool and allocating all of the memory inside that pool. Then at exit I
would simply deallocate whole pool. Is there any good library that
implements that?

TIA

Andrei



Relevant Pages

  • Re: memory allocation questions (newbie)
    ... > memory leaks. ... I think having multiple exit points is not a good idea. ... IOW consider whichever function did the allocation ... when I pass a pointer to some allocated memory as ...
    (comp.lang.c)
  • Re: are there any good memory pool libraries?
    ... It uses dynamic memory allocation, ... > there can be situations where this thread shall immidiately exit. ... > problem is that during the exit it shall somehow release all memory ...
    (comp.os.linux.development.apps)
  • Re: are there any good memory pool libraries?
    ... > enviroment in separate thread. ... It uses dynamic memory allocation, ... > there can be situations where this thread shall immidiately exit. ... > problem is that during the exit it shall somehow release all memory ...
    (comp.os.linux.development.apps)
  • Re: are there any good memory pool libraries?
    ... >> enviroment in separate thread. ... It uses dynamic memory allocation, ... >> problem is that during the exit it shall somehow release all memory ... > pointers and a standard factory pattern. ...
    (comp.os.linux.development.apps)
  • Re: How to release heap memory that is marked as free
    ... As I said, fragmentation is a very serious problem, and one of the most serious problems ... my allocator was accused of using massive amounts of memory. ... I'm going to have to re-think the memory allocation that I'm ... process's 'working set'. ...
    (microsoft.public.vc.mfc)