mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 09:07:18 +03:00
Cache an arena's index in the arena.
This saves us a pointer hop down some perf-sensitive paths.
This commit is contained in:
parent
229994a204
commit
4c46e11365
3 changed files with 8 additions and 1 deletions
|
|
@ -1475,6 +1475,7 @@ arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) {
|
|||
arena->base = base;
|
||||
/* Set arena before creating background threads. */
|
||||
arena_set(ind, arena);
|
||||
arena->ind = ind;
|
||||
|
||||
nstime_init_update(&arena->create_time);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue