core.gc.registry

Contains a registry for GC factories.

Types 3

aliasGCFactory = GC function()

A factory function that instantiates an implementation of the GC interface. In case the instance was allocated on the C heap, it is supposed to free itself upon calling it's destructor.

The factory should print an error and abort the program if it cannot successfully initialize the GC instance.

aliasGCThreadInitFunction = void function(ThreadBase base) nothrow @nogc

A function that will initialize a thread before the GC has been initialized. Once the GC is initialized, the interface method GC.initThread for each new thread.

structEntry
Fields
string name
GCFactory factory

Functions 4

fnvoid registerGCFactory(string name, GCFactory factory, GCThreadInitFunction threadInit = null) nothrow @nogcRegister a GC factory under the given `name`. This function must be called from a C constructor before druntime is initialized.
fnGC createGCInstance(string name)Called during runtime initialization to initialize a GC instance of given `name`.
fnGCThreadInitFunction threadInit(string name) nothrow @nogcGet the thread init function used for the selected GC.
fnconst(Entry[]) registeredGCFactories(scope int dummy = 0) nothrow @nogc

Variables 1

varEntry[] entries