diff options
author | Shocker <shocker@freakz.ro> | 2012-04-16 18:19:57 -0700 |
---|---|---|
committer | Shocker <shocker@freakz.ro> | 2012-04-16 18:19:57 -0700 |
commit | d6133d102800c80d55c103ae27ab8fb7e18f2f1d (patch) | |
tree | 8896ab1d5c2131fd2ea645f2bea962d336462b5f /dep/jemalloc/src/mutex.c | |
parent | 3189b57bf527fa82faea289400c61a3f969d390a (diff) | |
parent | 126fd13e5d6b57dc0c8830248d44db504c7d103f (diff) |
Merge pull request #6187 from GiR-Blunti/master
Updated jemalloc library to version 2.2.5
Diffstat (limited to 'dep/jemalloc/src/mutex.c')
-rw-r--r-- | dep/jemalloc/src/mutex.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dep/jemalloc/src/mutex.c b/dep/jemalloc/src/mutex.c index 3ecb18a340e..ca89ef1c962 100644 --- a/dep/jemalloc/src/mutex.c +++ b/dep/jemalloc/src/mutex.c @@ -55,6 +55,9 @@ pthread_create(pthread_t *__restrict thread, bool malloc_mutex_init(malloc_mutex_t *mutex) { +#ifdef JEMALLOC_OSSPIN + *mutex = 0; +#else pthread_mutexattr_t attr; if (pthread_mutexattr_init(&attr) != 0) @@ -70,6 +73,7 @@ malloc_mutex_init(malloc_mutex_t *mutex) } pthread_mutexattr_destroy(&attr); +#endif return (false); } @@ -77,8 +81,10 @@ void malloc_mutex_destroy(malloc_mutex_t *mutex) { +#ifndef JEMALLOC_OSSPIN if (pthread_mutex_destroy(mutex) != 0) { malloc_write("<jemalloc>: Error in pthread_mutex_destroy()\n"); abort(); } +#endif } |