Mem leak : malloc/free + pthreads = leakage?

Ryan Stone rysto32 at gmail.com
Sun Mar 6 15:34:13 UTC 2011


I would try playing with MALLOC_OPTIONS.  I seriously doubt that there
is an actual leak in jemalloc, but from my own experiences with it I
suspect that there are certain multithreaded malloc/free sequences
that interact badly with with the per-thread caching that jemalloc
performs.  The first thing I would try is setting MALLOC_OPTIONS=7h to
disable the caching.


More information about the freebsd-hackers mailing list