9 references to MaxGeneration
Microsoft.CodeAnalysis.Test.Utilities (1)
ObjectReference.cs (1)
141
GC.Collect(GC.
MaxGeneration
, GCCollectionMode.Forced, blocking: true, compacting: true);
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\ForceLowMemoryMode.cs (1)
149
GC.Collect(GC.
MaxGeneration
);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\RuntimeMetrics.cs (1)
163
for (int gen = GC.
MaxGeneration
; gen >= 0; --gen)
System.Private.CoreLib (2)
src\System\GC.CoreCLR.cs (2)
192
bool aggressive = generation ==
MaxGeneration
&& mode == GCCollectionMode.Aggressive;
215
if (generation !=
MaxGeneration
)
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
1611
GC.Collect(GC.
MaxGeneration
, GCCollectionMode.Forced, blocking: true);
1631
GC.Collect(GC.
MaxGeneration
, GCCollectionMode.Forced, blocking: true);
System\Windows\Forms\ControlTests.Internals.cs (1)
407
GC.Collect(GC.
MaxGeneration
, GCCollectionMode.Forced, blocking: true);
System\Windows\Forms\LayoutEventArgsTests.cs (1)
49
GC.Collect(GC.
MaxGeneration
, GCCollectionMode.Forced, blocking: true);