Fix stats.mapped during deallocation.

This commit is contained in:
Qi Wang 2017-05-24 12:44:53 -07:00 committed by Qi Wang
parent 67c93c332a
commit 1df18d7c83

View File

@ -968,7 +968,7 @@ arena_decay_stashed(tsdn_t *tsdn, arena_t *arena,
arena_stats_add_u64(tsdn, &arena->stats, &decay->stats->purged,
npurged);
arena_stats_sub_zu(tsdn, &arena->stats, &arena->stats.mapped,
nunmapped);
nunmapped << LG_PAGE);
arena_stats_unlock(tsdn, &arena->stats);
}