mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-24 04:45:39 +03:00
PA: Add a stats type.
This commit is contained in:
parent
688fb3eb89
commit
32cb7c2f0b
6 changed files with 35 additions and 11 deletions
|
|
@ -199,7 +199,7 @@ extents_abandon_vm(tsdn_t *tsdn, arena_t *arena, ehooks_t *ehooks,
|
|||
ecache_t *ecache, edata_t *edata, bool growing_retained) {
|
||||
size_t sz = edata_size_get(edata);
|
||||
if (config_stats) {
|
||||
arena_stats_accum_zu(&arena->stats.abandoned_vm, sz);
|
||||
arena_stats_accum_zu(&arena->pa_shard.stats->abandoned_vm, sz);
|
||||
}
|
||||
/*
|
||||
* Leak extent after making sure its pages have already been purged, so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue