The garbage collector.
Inheritance Hierarchy
Kernel GC
Namespace: Kernel
Assembly: Kernel (in Kernel.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The GC type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() ![]() | GC |
Methods
Name | Description | |
---|---|---|
![]() ![]() | _DecrementRefCount |
Underlying method that decrements the ref count of a GC managed object.
|
![]() ![]() | _IncrementRefCount |
Underlying method that increments the ref count of a GC managed object.
|
![]() ![]() | CheckSignature |
Checks the GC header is valid by checking for the GC signature.
|
![]() ![]() | DecrementRefCount |
Decrements the ref count of a GC managed object.
|
![]() ![]() | GetHandle |
Gets a handle for the specified object - basically, a round-about way of casting an object to a pointer.
|
![]() ![]() | IncrementRefCount |
Increments the ref count of a GC managed object.
|
![]() ![]() | Init |
Intialises the GC.
|
![]() ![]() | NewObj |
Creates a new object of specified type (but does not call the default constructor).
|
![]() ![]() | SetSignature |
Sets the GC signature in the specified GC header.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | GCInitialised |
Whether the GC has been initialised yet or not.
Used to prevent the GC running before it has been initialised properly.
|
![]() ![]() | InsideGC |
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!)
|
![]() ![]() | NumObjs |
The total number of objects currently allocated by the GC.
|
See Also