Initialize prof idump counter once rather than once per arena

This commit is contained in:
Yinan Zhang 2020-04-15 12:21:38 -07:00
parent e10e5059e8
commit 8be5584494
3 changed files with 6 additions and 9 deletions

View file

@ -1463,12 +1463,6 @@ arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) {
}
}
if (config_prof) {
if (prof_accum_init()) {
goto label_error;
}
}
atomic_store_u(&arena->dss_prec, (unsigned)extent_dss_prec_get(),
ATOMIC_RELAXED);