Skip to content

Commit

Permalink
Fix assert failure in grow_heap_segment in no GC region. (#86644)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PeterSolMS authored May 23, 2023
1 parent f6f7d89 commit 927b6bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 927b6bd

Please sign in to comment.