Skip to content

Commit 5f80c24

Browse files
authored
Reset current_no_gc_region_info after leaving no gc region implicitly (#73602)
1 parent 136e29f commit 5f80c24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20852,6 +20852,8 @@ BOOL gc_heap::should_proceed_with_gc()
2085220852
// The no_gc mode was already in progress yet we triggered another GC,
2085320853
// this effectively exits the no_gc mode.
2085420854
restore_data_for_no_gc();
20855+
20856+
memset (&current_no_gc_region_info, 0, sizeof (current_no_gc_region_info));
2085520857
}
2085620858
else
2085720859
return should_proceed_for_no_gc();

0 commit comments

Comments
 (0)