Move arena-tracking atomics in jemalloc.c to C11-style

This commit is contained in:
David Goldblatt
2017-04-04 15:12:24 -07:00
committed by David Goldblatt
parent 864adb7f42
commit bc32ec3503
3 changed files with 12 additions and 11 deletions

View File

@@ -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