From 927b6bd164271b9a3203dd8b4d9028654d3f2c63 Mon Sep 17 00:00:00 2001 From: Peter Sollich Date: Tue, 23 May 2023 18:37:03 +0200 Subject: [PATCH] Fix assert failure in grow_heap_segment in no GC region. (#86644) This addresses issue #86612. We won't actually decommit anything once we enter a no GC region, so the assert was overeager for this case, but it seems better to keep the assert and turn off the gradual_decommit_in_progress_p flag when we enter a no GC region. --- src/coreclr/gc/gc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index e91ae9dc03f04..5929320f119c3 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -6995,6 +6995,7 @@ void gc_heap::gc_thread_function () { update_collection_counts_for_no_gc(); proceed_with_gc_p = FALSE; + gradual_decommit_in_progress_p = FALSE; } else {