mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-01 17:54:16 +03:00
Fix malloc_mutex_[un]lock() to conditionally check witness.
Also remove tautological cassert(config_debug) calls.
This commit is contained in:
parent
d9394d0ca8
commit
1b5830178f
2 changed files with 2 additions and 12 deletions
|
|
@ -39,8 +39,6 @@ witness_lock(tsd_t *tsd, witness_t *witness)
|
|||
witness_list_t *witnesses;
|
||||
witness_t *w;
|
||||
|
||||
cassert(config_debug);
|
||||
|
||||
if (tsd == NULL)
|
||||
return;
|
||||
if (witness->rank == WITNESS_RANK_OMIT)
|
||||
|
|
@ -63,8 +61,6 @@ witness_unlock(tsd_t *tsd, witness_t *witness)
|
|||
{
|
||||
witness_list_t *witnesses;
|
||||
|
||||
cassert(config_debug);
|
||||
|
||||
if (tsd == NULL)
|
||||
return;
|
||||
if (witness->rank == WITNESS_RANK_OMIT)
|
||||
|
|
@ -101,8 +97,6 @@ witness_assert_owner(tsd_t *tsd, const witness_t *witness)
|
|||
witness_list_t *witnesses;
|
||||
witness_t *w;
|
||||
|
||||
cassert(config_debug);
|
||||
|
||||
if (tsd == NULL)
|
||||
return;
|
||||
if (witness->rank == WITNESS_RANK_OMIT)
|
||||
|
|
@ -141,8 +135,6 @@ witness_assert_not_owner(tsd_t *tsd, const witness_t *witness)
|
|||
witness_list_t *witnesses;
|
||||
witness_t *w;
|
||||
|
||||
cassert(config_debug);
|
||||
|
||||
if (tsd == NULL)
|
||||
return;
|
||||
if (witness->rank == WITNESS_RANK_OMIT)
|
||||
|
|
@ -184,8 +176,6 @@ witness_assert_lockless(tsd_t *tsd)
|
|||
witness_list_t *witnesses;
|
||||
witness_t *w;
|
||||
|
||||
cassert(config_debug);
|
||||
|
||||
if (tsd == NULL)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue