mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
psset: Move in stats.
A later change will benefit from having these functions pulled into a psset-module set of functions.
This commit is contained in:
committed by
David Goldblatt
parent
d0a991d47b
commit
c1b2a77933
@@ -150,15 +150,7 @@ pa_shard_stats_merge(tsdn_t *tsdn, pa_shard_t *shard,
|
||||
}
|
||||
|
||||
if (shard->ever_used_hpa) {
|
||||
malloc_mutex_lock(tsdn, &shard->hpa_shard.mtx);
|
||||
psset_bin_stats_accum(&hpa_stats_out->psset_full_slab_stats,
|
||||
&shard->hpa_shard.psset.full_slab_stats);
|
||||
for (pszind_t i = 0; i < PSSET_NPSIZES; i++) {
|
||||
psset_bin_stats_accum(
|
||||
&hpa_stats_out->psset_slab_stats[i],
|
||||
&shard->hpa_shard.psset.slab_stats[i]);
|
||||
}
|
||||
malloc_mutex_unlock(tsdn, &shard->hpa_shard.mtx);
|
||||
hpa_stats_merge(tsdn, &shard->hpa_shard, hpa_stats_out);
|
||||
sec_stats_merge(tsdn, &shard->hpa_sec, sec_stats_out);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user