diff options
author | Rajeev Misra <rajeev.misra@gmail.com> | 2018-04-09 19:02:40 -0700 |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2018-04-10 10:16:57 -0700 |
commit | 5f51882a0a7d529c90bbb15ccbabb064b0a11e80 (patch) | |
tree | 1e7aab5d3e29f5bf92982b4ee99c2f39b3b08ed4 | |
parent | cf2f4aac1ca8c7d48a61a3921335fb411a3943a4 (diff) | |
download | platform_external_jemalloc_new-5f51882a0a7d529c90bbb15ccbabb064b0a11e80.tar.gz platform_external_jemalloc_new-5f51882a0a7d529c90bbb15ccbabb064b0a11e80.tar.bz2 platform_external_jemalloc_new-5f51882a0a7d529c90bbb15ccbabb064b0a11e80.zip |
Stack address should not be used for ordering mutexes
-rw-r--r-- | src/mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mutex.c b/src/mutex.c index 3de7f44a..30222b3e 100644 --- a/src/mutex.c +++ b/src/mutex.c @@ -174,7 +174,7 @@ malloc_mutex_init(malloc_mutex_t *mutex, const char *name, mutex->lock_order = lock_order; if (lock_order == malloc_mutex_address_ordered) { witness_init(&mutex->witness, name, rank, - mutex_addr_comp, &mutex); + mutex_addr_comp, mutex); } else { witness_init(&mutex->witness, name, rank, NULL, NULL); } |