Pthread spinlock support

Eric Wong normalperson at yhbt.net
Thu Jan 23 16:35:27 PST 2014


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.



More information about the jemalloc-discuss mailing list