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
-
AnyGC
Methods
Collect()
#
Collects at the next safepoint.
How many collections ran.
How many objects are alive (or not collected yet).
Private and internal members (3)
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
GC as Antril, decompiled from its Larva HIR.
// 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();
}
}