mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-24 03:42:14 +03:00
Fix malloc_mutex_assert_[not_]owner() for --enable-lazy-lock case.
This commit is contained in:
parent
ab0cfe01fa
commit
b6e07d2389
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ JEMALLOC_INLINE void
|
|||
malloc_mutex_assert_owner(tsd_t *tsd, malloc_mutex_t *mutex)
|
||||
{
|
||||
|
||||
if (config_debug)
|
||||
if (isthreaded && config_debug)
|
||||
witness_assert_owner(tsd, &mutex->witness);
|
||||
}
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ JEMALLOC_INLINE void
|
|||
malloc_mutex_assert_not_owner(tsd_t *tsd, malloc_mutex_t *mutex)
|
||||
{
|
||||
|
||||
if (config_debug)
|
||||
if (isthreaded && config_debug)
|
||||
witness_assert_not_owner(tsd, &mutex->witness);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue