Jason Evans <jasone at canonware.com> wrote: > Furthermore, on Linux jemalloc uses adaptive mutexes, > which IIRC spin before blocking. Heh, I just attempted to write some other code using PTHREAD_MUTEX_ADAPTIVE_NP based on this comment and realized PTHREAD_MUTEX_ADAPTIVE_NP is not a macro and the adaptive mutex doesn't get used on Linux jemalloc.