Fix stats.mapped during deallocation.
This commit is contained in:
parent
67c93c332a
commit
1df18d7c83
@ -968,7 +968,7 @@ arena_decay_stashed(tsdn_t *tsdn, arena_t *arena,
|
|||||||
arena_stats_add_u64(tsdn, &arena->stats, &decay->stats->purged,
|
arena_stats_add_u64(tsdn, &arena->stats, &decay->stats->purged,
|
||||||
npurged);
|
npurged);
|
||||||
arena_stats_sub_zu(tsdn, &arena->stats, &arena->stats.mapped,
|
arena_stats_sub_zu(tsdn, &arena->stats, &arena->stats.mapped,
|
||||||
nunmapped);
|
nunmapped << LG_PAGE);
|
||||||
arena_stats_unlock(tsdn, &arena->stats);
|
arena_stats_unlock(tsdn, &arena->stats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user