2928 references to GC
Aspire.Cli.Tests (2)
Client.TypedClient.IntegrationTests (3)
csc (1)
dotnet-svcutil-lib (6)
ILCompiler.Compiler (1)
ILCompiler.Diagnostics (9)
ILCompiler.ReadyToRun (1)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.Build (7)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (3)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractAnalysisData.cs (1)
21GC.SuppressFinalize(this);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.Features (16)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (13)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (1)
Microsoft.Data.Analysis.Tests (2)
Microsoft.Diagnostics.DataContractReader.Legacy (867)
Microsoft.DiaSymReader (414)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.NativeWrapper (4)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Integration.Tests (5)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.DataIngestion.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.ObjectPool (1)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Gen.Metrics.Generated.Tests (1)
Microsoft.Maui (1)
Microsoft.McpServer.ProjectTemplates.Tests (1)
Microsoft.ML.AutoML (2)
Microsoft.ML.Core (2)
Microsoft.ML.Data (1)
Microsoft.ML.DataView (1)
Microsoft.ML.FastTree (3)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Parquet (1)
Microsoft.ML.Recommender (1)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.ML.TorchSharp (3)
Microsoft.Private.Windows.Core (53)
Microsoft.TestPlatform.CommunicationUtilities (2)
Microsoft.TestPlatform.CoreUtilities (1)
Microsoft.TestPlatform.CrossPlatEngine (4)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.TestPlatform.PlatformAbstractions (2)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.TestPlatform.Client (2)
Microsoft.VisualStudio.TestPlatform.Common (3)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
Microsoft.Web.XmlTransform (3)
Microsoft.Win32.SystemEvents (5)
Mono.Cecil (1)
MSBuild (1)
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks (3)
NuGet.CommandLine.XPlat (1)
NuGet.Common (2)
NuGet.Configuration (1)
NuGet.Credentials (1)
NuGet.PackageManagement (1)
NuGet.Packaging (9)
NuGet.Protocol (28)
PresentationBuildTasks (1)
PresentationCore (58)
PresentationFramework (66)
PresentationUI (5)
ReachFramework (9)
rzc (3)
ScenarioTests.Common.Tests (1)
System.CodeDom (1)
System.Collections.Concurrent (1)
System.Collections.Immutable (1)
System.ComponentModel.Composition (8)
System.ComponentModel.EventBasedAsync (1)
System.ComponentModel.Primitives (1)
System.ComponentModel.TypeConverter (6)
System.Configuration.ConfigurationManager (1)
System.Data.Common (10)
System.Data.Odbc (7)
System.Data.OleDb (17)
System.Diagnostics.DiagnosticSource (13)
System.Diagnostics.EventLog (11)
System.Diagnostics.PerformanceCounter (7)
System.Diagnostics.Process (3)
System.Diagnostics.TraceSource (5)
System.DirectoryServices (18)
System.DirectoryServices.AccountManagement (5)
System.DirectoryServices.Protocols (7)
System.Drawing.Common (500)
System.IO.Compression (2)
System.IO.IsolatedStorage (1)
System.IO.MemoryMappedFiles (2)
System.IO.Packaging (2)
System.IO.Pipes (1)
System.Linq (2)
System.Management (41)
System.Memory (1)
System.Net.Http (9)
System.Net.Http.WinHttpHandler (1)
System.Net.HttpListener (1)
System.Net.Mail (1)
System.Net.Ping (1)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (8)
System.Net.Sockets (5)
System.Net.WebClient (1)
System.Numerics.Tensors (3)
System.Private.CoreLib (112)
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierW.cs (1)
115GC.KeepAlive(value);
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierWKeyed.cs (1)
124GC.KeepAlive(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (15)
81_gcHeapSizeCounter ??= new PollingCounter("gc-heap-size", this, () => ((double)GC.GetTotalMemory(false) / 1_000_000)) { DisplayName = "GC Heap Size", DisplayUnits = "MB" };
82_gen0GCCounter ??= new IncrementingPollingCounter("gen-0-gc-count", this, () => GC.CollectionCount(0)) { DisplayName = "Gen 0 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) };
83_gen1GCCounter ??= new IncrementingPollingCounter("gen-1-gc-count", this, () => GC.CollectionCount(1)) { DisplayName = "Gen 1 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) };
84_gen2GCCounter ??= new IncrementingPollingCounter("gen-2-gc-count", this, () => GC.CollectionCount(2)) { DisplayName = "Gen 2 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) };
85_gen0BudgetCounter ??= new PollingCounter("gen-0-gc-budget", this, () => GC.GetGenerationBudget(0) / 1_000_000) { DisplayName = "Gen 0 GC Budget", DisplayUnits = "MB" };
90_allocRateCounter ??= new IncrementingPollingCounter("alloc-rate", this, () => GC.GetTotalAllocatedBytes()) { DisplayName = "Allocation Rate", DisplayUnits = "B", DisplayRateTimeScale = new TimeSpan(0, 0, 1) };
93var gcInfo = GC.GetGCMemoryInfo();
97_committedCounter ??= new PollingCounter("gc-committed", this, () => ((double)GC.GetGCMemoryInfo().TotalCommittedBytes / 1_000_000)) { DisplayName = "GC Committed Bytes", DisplayUnits = "MB" };
99_gcTimeCounter ??= new PollingCounter("time-in-gc", this, () => GC.GetLastGCPercentTimeInGC()) { DisplayName = "% Time in GC since last GC", DisplayUnits = "%" };
100_totalGcPauseTimeCounter ??= new IncrementingPollingCounter("total-pause-time-by-gc", this, () => GC.GetTotalPauseDuration().TotalMilliseconds) { DisplayName = "Time paused by GC", DisplayUnits = "ms" };
101_gen0SizeCounter ??= new PollingCounter("gen-0-size", this, () => GC.GetGenerationSize(0)) { DisplayName = "Gen 0 Size", DisplayUnits = "B" };
102_gen1SizeCounter ??= new PollingCounter("gen-1-size", this, () => GC.GetGenerationSize(1)) { DisplayName = "Gen 1 Size", DisplayUnits = "B" };
103_gen2SizeCounter ??= new PollingCounter("gen-2-size", this, () => GC.GetGenerationSize(2)) { DisplayName = "Gen 2 Size", DisplayUnits = "B" };
104_lohSizeCounter ??= new PollingCounter("loh-size", this, () => GC.GetGenerationSize(3)) { DisplayName = "LOH Size", DisplayUnits = "B" };
105_pohSizeCounter ??= new PollingCounter("poh-size", this, () => GC.GetGenerationSize(4)) { DisplayName = "POH (Pinned Object Heap) Size", DisplayUnits = "B" };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.cs (1)
52GC.SuppressFinalize(this);
System.Private.DataContractSerialization (2)
System.Private.TypeLoader (1)
System.Private.Windows.Core (54)
System.Private.Windows.Core.TestUtilities (8)
System.Private.Windows.GdiPlus (10)
System.Private.Xml (2)
System.Reflection.Metadata (3)
System.Reflection.MetadataLoadContext (1)
System.Runtime (1)
System.Runtime.Caching (6)
System.Runtime.InteropServices (5)
System.Runtime.InteropServices.JavaScript (2)
System.Security.AccessControl (1)
System.Security.Cryptography (37)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (5)
System.ServiceModel.Primitives (3)
System.ServiceProcess.ServiceController (1)
System.Speech (24)
System.Threading (2)
System.Threading.RateLimiting (5)
System.Threading.Tasks.Dataflow (2)
System.Transactions.Local (64)
System.Windows.Controls.Ribbon (1)
System.Windows.Extensions (2)
System.Windows.Forms (66)
System.Windows.Forms.Design (2)
System.Windows.Forms.Primitives (84)
System.Xaml (5)
UIAutomationClient (7)
UIAutomationTypes (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\HandleCollector.cs (1)
119GC.Collect();
vbc (1)
VBCSCompiler (3)
vstest.console (3)
vstest.console.arm64 (3)