GC Class Fling OS
The garbage collector.
Inheritance Hierarchy

System Object
  Kernel GC

Namespace: Kernel
Assembly: Kernel (in Kernel.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[PluggedClassAttribute]
public static class GC

The GC type exposes the following members.

Constructors

  NameDescription
Private methodStatic memberGC
Top
Methods

  NameDescription
Public methodStatic member_DecrementRefCount
Underlying method that decrements the ref count of a GC managed object.
Public methodStatic member_IncrementRefCount
Underlying method that increments the ref count of a GC managed object.
Public methodStatic memberCheckSignature
Checks the GC header is valid by checking for the GC signature.
Public methodStatic memberDecrementRefCount
Decrements the ref count of a GC managed object.
Public methodStatic memberGetHandle
Gets a handle for the specified object - basically, a round-about way of casting an object to a pointer.
Public methodStatic memberIncrementRefCount
Increments the ref count of a GC managed object.
Public methodStatic memberInit
Intialises the GC.
Public methodStatic memberNewObj
Creates a new object of specified type (but does not call the default constructor).
Public methodStatic memberSetSignature
Sets the GC signature in the specified GC header.
Top
Fields

  NameDescription
Private fieldStatic memberGCInitialised
Whether the GC has been initialised yet or not. Used to prevent the GC running before it has been initialised properly.
Private fieldStatic memberInsideGC
Whether the GC is currently executing. Used to prevent the GC calling itself (or ending up in loops with called methods re-calling the GC!)
Public fieldStatic memberNumObjs
The total number of objects currently allocated by the GC.
Top
See Also