We should not call distribute_free_regions at the end of background GC - then it...
authorPeter Sollich <petersol@microsoft.com>
Wed, 22 Sep 2021 06:22:18 +0000 (08:22 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Sep 2021 06:22:18 +0000 (23:22 -0700)
src/coreclr/gc/gc.cpp

index f018ec4..5fcc273 100644 (file)
@@ -20703,14 +20703,14 @@ void gc_heap::gc1()
 #endif //FEATURE_LOH_COMPACTION
 
     decommit_ephemeral_segment_pages();
-#ifdef USE_REGIONS
-    distribute_free_regions();
-#endif //USE_REGIONS
-
     fire_pevents();
 
     if (!(settings.concurrent))
     {
+#ifdef USE_REGIONS
+        distribute_free_regions();
+#endif //USE_REGIONS
+
         rearrange_uoh_segments();
         update_end_ngc_time();
         update_end_gc_time_per_heap();