Skip to content

Commit

Permalink
Reset current_no_gc_region_info after leaving no gc region implicitly (
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung authored Aug 9, 2022
1 parent 136e29f commit 5f80c24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20852,6 +20852,8 @@ BOOL gc_heap::should_proceed_with_gc()
// The no_gc mode was already in progress yet we triggered another GC,
// this effectively exits the no_gc mode.
restore_data_for_no_gc();

memset (&current_no_gc_region_info, 0, sizeof (current_no_gc_region_info));
}
else
return should_proceed_for_no_gc();
Expand Down

0 comments on commit 5f80c24

Please sign in to comment.