Skip to content

Commit fd9d7b7

Browse files
VSadovgithub-actions
authored andcommitted
fix indentation
1 parent 5a109c6 commit fd9d7b7

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/coreclr/vm/finalizerthread.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)