On Sep 26, 2012, at 8:13 AM, Aaron Evers <[email protected]> wrote:
> Is it sufficient to link in jemalloc at compile time (i.e. -ljemalloc)
> if I want it to be used by STL containers?  Or do I need to specify
> the allocator, as in:
> typedef std::list<int, malloc_alloc> mylist;

It should be sufficient to link in jemalloc.  Note however that as far as I 
know, glibc still has what amounts to a huge stl memory leak that can be worked 
around by defining GLIBCXX_FORCE_NEW=1 in the environment when running your 
application.  tcmalloc does this automatically, but jemalloc does not.

Jason
_______________________________________________
jemalloc-discuss mailing list
[email protected]
http://www.canonware.com/mailman/listinfo/jemalloc-discuss

Reply via email to