From cdfbd6d08fff0d2c9409ae40ddc15c756740227b Mon Sep 17 00:00:00 2001 From: daan Date: Sat, 13 Nov 2021 17:12:21 -0800 Subject: [PATCH] decommit when abandoned segments move to the visited list --- src/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/segment.c b/src/segment.c index 0b9502f2..1c46242d 100644 --- a/src/segment.c +++ b/src/segment.c @@ -1315,7 +1315,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_segment_delayed_decommit(segment, true, tld->stats); // decommit if needed mi_abandoned_visited_push(segment); } }