mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
PA: Move in decay initialization.
This commit is contained in:
parent
45671e4a27
commit
faec7219b2
3 changed files with 14 additions and 13 deletions
14
src/arena.c
14
src/arena.c
|
|
@ -1487,19 +1487,11 @@ arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) {
|
|||
goto label_error;
|
||||
}
|
||||
|
||||
if (pa_shard_init(tsdn, &arena->pa_shard, base, ind,
|
||||
&arena->stats.pa_shard_stats, LOCKEDINT_MTX(arena->stats.mtx))) {
|
||||
goto label_error;
|
||||
}
|
||||
|
||||
nstime_t cur_time;
|
||||
nstime_init_update(&cur_time);
|
||||
|
||||
if (decay_init(&arena->pa_shard.decay_dirty, &cur_time,
|
||||
arena_dirty_decay_ms_default_get())) {
|
||||
goto label_error;
|
||||
}
|
||||
if (decay_init(&arena->pa_shard.decay_muzzy, &cur_time,
|
||||
if (pa_shard_init(tsdn, &arena->pa_shard, base, ind,
|
||||
&arena->stats.pa_shard_stats, LOCKEDINT_MTX(arena->stats.mtx),
|
||||
&cur_time, arena_dirty_decay_ms_default_get(),
|
||||
arena_muzzy_decay_ms_default_get())) {
|
||||
goto label_error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue