Fix special sweep issue for workstation (#81248)
authorAndrew Au <andrewau@microsoft.com>
Mon, 6 Mar 2023 18:48:49 +0000 (10:48 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 18:48:49 +0000 (10:48 -0800)
src/coreclr/gc/gc.cpp

index 3ca3b8b..eecc2c0 100644 (file)
@@ -30629,6 +30629,13 @@ void gc_heap::plan_phase (int condemned_gen_number)
         gc_time_info[time_plan] = gc_time_info[time_sweep] - gc_time_info[time_plan];
     }
 #endif //FEATURE_EVENT_TRACE
+
+#ifdef USE_REGIONS
+    if (special_sweep_p)
+    {
+        should_compact = FALSE;
+    }
+#endif //!USE_REGIONS
 #endif //MULTIPLE_HEAPS
 
 #ifdef FEATURE_LOH_COMPACTION