From c609248f0ee2f7daff898d8da516493aea1b1a34 Mon Sep 17 00:00:00 2001 From: daan Date: Thu, 30 Apr 2020 13:30:19 -0700 Subject: [PATCH] do delayed decommit if not reclaiming abandoned blocks --- src/segment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/segment.c b/src/segment.c index ed587d5b..ba7cf687 100644 --- a/src/segment.c +++ b/src/segment.c @@ -1208,6 +1208,7 @@ static mi_segment_t* mi_segment_try_reclaim(mi_heap_t* heap, size_t needed_slice } else { // otherwise, push on the visited list so it gets not looked at too quickly again + mi_segment_delayed_decommit(segment, false, tld->stats); // decommit if needed mi_abandoned_visited_push(segment); } }