For my previous change, I overlooked the fact that we may call grow_heap_segment from within should_proceed_for_no_gc(), so it's too late to turn off gradual_decommit_in_progress_p after this method returns.
{
update_collection_counts_for_no_gc();
proceed_with_gc_p = FALSE;
- gradual_decommit_in_progress_p = FALSE;
}
else
{
BOOL no_gc_requested = FALSE;
BOOL get_new_loh_segments = FALSE;
+#ifdef MULTIPLE_HEAPS
+ // need to turn off this flag here because of the call to grow_heap_segment below
+ gradual_decommit_in_progress_p = FALSE;
+#endif //MULTIPLE_HEAPS
+
gc_heap* hp = nullptr;
if (current_no_gc_region_info.soh_allocation_size)
{