static class · System

GC

public static class GC

The collector (System.GC): asking for a collection, and what it has done.

Kind
static class
Namespace
System
Assembly
System.Core
Access
public, static, abstract
Source file
Runtime.ant

Inheritance

Base classes
Any GC

Methods

Collect()
#

static

Collects at the next safepoint.

CollectionCount() : i64
#

static

How many collections ran.

ObjectCount() : i64
#

static

How many objects are alive (or not collected yet).

Private and internal members (3)

extern("gc.request") Request()
#

private static

extern("gc.collections") Collections() : i64
#

private static

extern("gc.objects") Objects() : i64
#

private static

Inherited members (5)

Source

GC as Antril, decompiled from its Larva HIR.

System.GC.ant
// System.GC — System.Core (decompiled from Larva HIR)

into namespace System
{
	/// The collector (System.GC): asking for a collection, and what it has done.
	public static class GC
	{
		extern("gc.request") Request();

		extern("gc.collections") Collections() : i64;

		extern("gc.objects") Objects() : i64;

		public:
			/// Collects at the next safepoint.
			Collect()
			{
				Request();
			}

			/// How many collections ran.
			CollectionCount() : i64 => Collections();

			/// How many objects are alive (or not collected yet).
			ObjectCount() : i64 => Objects();
	}
}
Esc