Move arena-tracking atomics in jemalloc.c to C11-style
This commit is contained in:
committed by
David Goldblatt
parent
864adb7f42
commit
bc32ec3503
@@ -63,7 +63,7 @@ extent_arena_get(const extent_t *extent) {
|
||||
return NULL;
|
||||
}
|
||||
assert(arena_ind <= MALLOCX_ARENA_MAX);
|
||||
return arenas[arena_ind];
|
||||
return (arena_t *)atomic_load_p(&arenas[arena_ind], ATOMIC_ACQUIRE);
|
||||
}
|
||||
|
||||
JEMALLOC_INLINE szind_t
|
||||
|
Reference in New Issue
Block a user