class · System

GC

public class System.GC : System.Any

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

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

Inheritance

Base classes
Any GC

Methods

static method Collect() -> void
#

static

Collects at the next safepoint.

static method CollectionCount() -> i64
#

static

How many collections ran.

static method ObjectCount() -> i64
#

static

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

Private and internal members (3)

static method Request() -> void
#

private static

static method Collections() -> i64
#

private static

static method Objects() -> i64
#

private static

Inherited members (5)

Source

GC as Larva HIR, decompiled from its Larva HIR.

System.GC.hir
// The collector (System.GC): asking for a collection, and what it has done.
public class System.GC : System.Any
{
    static method Request() -> void
    static method Collections() -> i64
    static method Objects() -> i64
    // Collects at the next safepoint.
    static method Collect() -> void
    // How many collections ran.
    static method CollectionCount() -> i64
    // How many objects are alive (or not collected yet).
    static method ObjectCount() -> i64
}
Esc