Fix arena_large_reset_stats_cancel().

Decrement ndalloc_large rather than incrementing, in order to cancel out
the increment in arena_large_dalloc_stats_update().
This commit is contained in:
Jason Evans 2017-01-04 20:09:03 -08:00
parent a0dd3a4483
commit 5c5ff8d121

View File

@ -260,7 +260,7 @@ arena_large_reset_stats_cancel(arena_t *arena, size_t usize)
cassert(config_stats);
arena->stats.ndalloc_large++;
arena->stats.ndalloc_large--;
arena->stats.lstats[hindex].ndalloc--;
}