gc.registry

Contains a registry for GC factories.

Members

Aliases

GCFactory
alias GCFactory = 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.

Functions

createGCInstance
GC createGCInstance(string name)

Called during runtime initialization to initialize a GC instance of given name.

registerGCFactory
void registerGCFactory(string name, GCFactory factory)

Register a GC factory under the given name. This function must be called from a C constructor before druntime is initialized.

Meta

Authors

Martin Nowak

Suggestion Box / Bug Report