@@ -177,23 +177,23 @@ OBJECTREF FinalizerThread::GetNextFinalizableObject()
177177 return NULL ;
178178
179179#ifdef _DEBUG
180- if (g_pConfig->GetGCStressLevel () > 1 )
181- {
182- // Throttle finalizing to one item per msec, or so, when running GC stress.
183- // This is to prevent cases where finalizers rearm themselves and
184- // do allocations or whatever else that triggers GC under stress.
185- // As a result couple of such things can occupy finalizer loop continuously
186- // while rearming and finalizing the same objects, which adds little
187- // to the coverage, but makes everything else move slower.
188- // NOTE: under GC stress most allocations of finalizable objects
189- // would trigger a GC, thus 1 item/msec should not be too slow for
190- // regular not re-arming finalizables.
191- GetFinalizerThread ()->m_GCOnTransitionsOK = FALSE ;
192- GetFinalizerThread ()->EnablePreemptiveGC ();
193- ClrSleepEx (1 , false );
194- GetFinalizerThread ()->DisablePreemptiveGC ();
195- GetFinalizerThread ()->m_GCOnTransitionsOK = TRUE ;
196- }
180+ if (g_pConfig->GetGCStressLevel () > 1 )
181+ {
182+ // Throttle finalizing to one item per msec, or so, when running GC stress.
183+ // This is to prevent cases where finalizers rearm themselves and
184+ // do allocations or whatever else that triggers GC under stress.
185+ // As a result couple of such things can occupy finalizer loop continuously
186+ // while rearming and finalizing the same objects, which adds little
187+ // to the coverage, but makes everything else move slower.
188+ // NOTE: under GC stress most allocations of finalizable objects
189+ // would trigger a GC, thus 1 item/msec should not be too slow for
190+ // regular not re-arming finalizables.
191+ GetFinalizerThread ()->m_GCOnTransitionsOK = FALSE ;
192+ GetFinalizerThread ()->EnablePreemptiveGC ();
193+ ClrSleepEx (1 , false );
194+ GetFinalizerThread ()->DisablePreemptiveGC ();
195+ GetFinalizerThread ()->m_GCOnTransitionsOK = TRUE ;
196+ }
197197#endif // _DEBUG
198198
199199 OBJECTREF obj = ObjectToOBJECTREF (GCHeapUtilities::GetGCHeap ()->GetNextFinalizable ());
0 commit comments