fix stats for pages and page_bins

This commit is contained in:
Daan 2025-05-21 11:09:34 -07:00
parent 15c917ef15
commit 08c33768a5
7 changed files with 14 additions and 9 deletions

View file

@ -169,9 +169,7 @@ static void mi_heap_collect_ex(mi_heap_t* heap, mi_collect_t collect)
_mi_arenas_collect(collect == MI_FORCE /* force purge? */);
// merge statistics
if (collect <= MI_FORCE) {
mi_stats_merge();
}
if (collect <= MI_FORCE) { _mi_stats_merge_thread(heap->tld); }
}
void _mi_heap_collect_abandon(mi_heap_t* heap) {