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:
parent
a0dd3a4483
commit
5c5ff8d121
@ -260,7 +260,7 @@ arena_large_reset_stats_cancel(arena_t *arena, size_t usize)
|
|||||||
|
|
||||||
cassert(config_stats);
|
cassert(config_stats);
|
||||||
|
|
||||||
arena->stats.ndalloc_large++;
|
arena->stats.ndalloc_large--;
|
||||||
arena->stats.lstats[hindex].ndalloc--;
|
arena->stats.lstats[hindex].ndalloc--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user