static class · System

GC

public static class GC

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

Tipo
static class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, static, abstract
Archivo fuente
Runtime.ant

Herencia

Clases base
Any GC

Métodos

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).

Miembros privados e internos (3)

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

private static

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

private static

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

private static

Miembros heredados (5)

Código fuente

GC en Antril, descompilado a partir de su 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