mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-16 07:31:48 +03:00
Add an assertion in witness_owner().
This commit is contained in:
parent
6a834d94bb
commit
90b60eeae4
1 changed files with 3 additions and 0 deletions
|
|
@ -121,12 +121,15 @@ void witness_unlock(tsdn_t *tsdn, witness_t *witness);
|
|||
#endif
|
||||
|
||||
#if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_MUTEX_C_))
|
||||
/* Helper, not intended for direct use. */
|
||||
JEMALLOC_INLINE bool
|
||||
witness_owner(tsd_t *tsd, const witness_t *witness)
|
||||
{
|
||||
witness_list_t *witnesses;
|
||||
witness_t *w;
|
||||
|
||||
cassert(config_debug);
|
||||
|
||||
witnesses = tsd_witnessesp_get(tsd);
|
||||
ql_foreach(w, witnesses, link) {
|
||||
if (w == witness)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue