We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7960827 commit 1ec231fCopy full SHA for 1ec231f
src/SOS/SOS.UnitTests/Debuggees/FindRootsOlderGeneration/Program.cs
@@ -24,6 +24,11 @@ private static void Main()
24
Debugger.Break();
25
26
Console.WriteLine("Forcing GC...");
27
+
28
+ // On CI runs, in server GC mode, these collects have sometimes triggered
29
+ // a gen 2 collection that is not expected and causes the test to fail.
30
+ // Adding "SustainedLowLatency" mode to try to prevent that.
31
+ GCSettings.LatencyMode = GCLatencyMode.SustainedLowLatency;
32
GC.Collect(0, GCCollectionMode.Forced, true);
33
34
Console.WriteLine("GC complete.");
0 commit comments