mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-05 09:56:22 +03:00
Arena: Add helper function arena_get_from_extent.
This commit is contained in:
parent
c97d255752
commit
3d84bd57f4
4 changed files with 20 additions and 29 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue