core.gc.registry
Contains a registry for GC factories.
Copyright
Copyright Digital Mars 2016.
Types 3
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
Functions 4
fn
void 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.fn
GC createGCInstance(string name)Called during runtime initialization to initialize a GC instance of given `name`.fn
GCThreadInitFunction threadInit(string name) nothrow @nogcGet the thread init function used for the selected GC.Variables 1
var
Entry[] entries