Arena: Add helper function arena_get_from_extent.

This commit is contained in:
David T. Goldblatt
2019-09-23 18:05:57 -07:00
committed by David Goldblatt
parent c97d255752
commit 3d84bd57f4
4 changed files with 20 additions and 29 deletions

View File

@@ -2612,8 +2612,7 @@ arenas_lookup_ctl(tsd_t *tsd, const size_t *mib,
if (extent == NULL)
goto label_return;
arena = atomic_load_p(&arenas[extent_arena_ind_get(extent)],
ATOMIC_RELAXED);
arena = arena_get_from_extent(extent);
if (arena == NULL)
goto label_return;