From ed474ce52551045810535529869abca71e43086c Mon Sep 17 00:00:00 2001 From: Daan Date: Wed, 21 May 2025 15:20:06 -0700 Subject: [PATCH] merge 3b567b1 to track pages statistics correctly --- src/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap.c b/src/heap.c index 1ce15a5c..fb0a6c9d 100644 --- a/src/heap.c +++ b/src/heap.c @@ -130,7 +130,7 @@ static void mi_heap_collect_ex(mi_heap_t* heap, mi_collect_t collect) _mi_arenas_collect(collect == MI_FORCE /* force purge? */, collect >= MI_FORCE /* visit all? */, heap->tld); // merge statistics - _mi_stats_merge_thread(heap->tld); + if (collect <= MI_FORCE) { _mi_stats_merge_thread(heap->tld); } } void _mi_heap_collect_abandon(mi_heap_t* heap) {