Relax constraints on reentrancy for extent hooks.

If we guarantee no malloc activity in extent hooks, it's possible to make
customized hooks working on arena 0.  Remove the non-a0 assertion to enable such
use cases.
This commit is contained in:
Qi Wang
2017-08-30 16:17:04 -07:00
committed by Qi Wang
parent e55c3ca267
commit a315688be0
2 changed files with 13 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ pre_reentrancy(tsd_t *tsd, arena_t *arena) {
assert(arena != arena_get(tsd_tsdn(tsd), 0, false));
bool fast = tsd_fast(tsd);
assert(tsd_reentrancy_level_get(tsd) < INT8_MAX);
++*tsd_reentrancy_levelp_get(tsd);
if (fast) {
/* Prepare slow path for reentrancy. */