JEMALLOC_THREADED_INIT

Mike Hommey mh+jemalloc at glandium.org
Thu Apr 5 11:44:13 PDT 2012


On Thu, Apr 05, 2012 at 10:45:30AM -0700, Jason Evans wrote:
> On Apr 5, 2012, at 9:02 AM, Mike Hommey wrote:
> > I see that 41b6afb (Port to FreeBSD) added JEMALLOC_THREADED_INIT,
> > but nothing AC_DEFINEs it. Is that expected? (I bumped into this
> > because I was looking at pthread functions use)
> 
> Whoops, that's supposed to be defined on Linux, but as a side effect
> of that mistake, I also broke the code without noticing.  I'll get it
> sorted out today.

By the way, the pthread_create interception in src/mutex.c could use
the value of is_threaded instead of pthread_once().

Mike



More information about the jemalloc-discuss mailing list