26 references to GCCollectionMode
IdeCoreBenchmarks (3)
NavigateToBenchmarks.cs (3)
129GC.Collect(0, GCCollectionMode.Forced, blocking: true); 130GC.Collect(1, GCCollectionMode.Forced, blocking: true); 131GC.Collect(2, GCCollectionMode.Forced, blocking: true);
Microsoft.CodeAnalysis.Test.Utilities (1)
ObjectReference.cs (1)
141GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true, compacting: true);
Microsoft.CodeAnalysis.UnitTests (1)
Text\TextChangeTests.cs (1)
558GC.Collect(2, GCCollectionMode.Forced, blocking: true);
Microsoft.Data.Analysis.Tests (1)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
93GC.Collect(2, GCCollectionMode.Forced, true);
Microsoft.ML.FastTree (2)
FastTree.cs (2)
351GC.Collect(2, GCCollectionMode.Forced); 352GC.Collect(2, GCCollectionMode.Forced);
Microsoft.ML.TestFramework (1)
BaseTestClass.cs (1)
93GC.Collect(2, GCCollectionMode.Forced, true);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
244[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.GCCollectionMode))]
netstandard (1)
netstandard.cs (1)
812[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.GCCollectionMode))]
System.Private.CoreLib (9)
src\System\GC.CoreCLR.cs (9)
174Collect(generation, GCCollectionMode.Default); 185public static void Collect(int generation, GCCollectionMode mode) 190public static void Collect(int generation, GCCollectionMode mode, bool blocking) 192bool aggressive = generation == MaxGeneration && mode == GCCollectionMode.Aggressive; 196public static void Collect(int generation, GCCollectionMode mode, bool blocking, bool compacting) 200if ((mode < GCCollectionMode.Default) || (mode > GCCollectionMode.Aggressive)) 208if (mode == GCCollectionMode.Optimized) 212else if (mode == GCCollectionMode.Aggressive)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
209[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.GCCollectionMode))]
System.Runtime.Caching (1)
System\Runtime\Caching\PhysicalMemoryMonitor.Unix.cs (1)
34GC.Collect(0, GCCollectionMode.Optimized); // A quick, ephemeral Gen 0 collection
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
1611GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true); 1631GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true);
System\Windows\Forms\ControlTests.Internals.cs (1)
407GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true);
System\Windows\Forms\LayoutEventArgsTests.cs (1)
49GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true);