Set reentrancy to 1 for tsd_state_purgatory.
Reentrancy is already set for other non-nominal tsd states (reincarnated and minimal_initialized). Add purgatory to be safe and consistent.
This commit is contained in:
parent
88b0e03a4e
commit
38a48e5741
@ -414,7 +414,10 @@ tsd_fetch(void) {
|
||||
|
||||
static inline bool
|
||||
tsd_nominal(tsd_t *tsd) {
|
||||
return (tsd_state_get(tsd) <= tsd_state_nominal_max);
|
||||
bool nominal = tsd_state_get(tsd) <= tsd_state_nominal_max;
|
||||
assert(nominal || tsd_reentrancy_level_get(tsd) > 0);
|
||||
|
||||
return nominal;
|
||||
}
|
||||
|
||||
JEMALLOC_ALWAYS_INLINE tsdn_t *
|
||||
|
Loading…
Reference in New Issue
Block a user