View source code
Display the source code in core/gc/registry.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinglocal clone.
Module core.gc.registry
Contains a registry for GC factories.
Functions
| Name | Description |
|---|---|
createGCInstance(name)
|
Called during runtime initialization to initialize a GC instance of given name.
|
registerGCFactory(name, factory, threadInit)
|
Register a GC factory under the given name. This function must be called
from a C constructor before druntime is initialized.
|
threadInit(name)
|
Get the thread init function used for the selected GC. |
Aliases
| Name | Type | Description |
|---|---|---|
GCFactory
|
core
|
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. |
GCThreadInitFunction
|
nothrow @nogc void function(ThreadBase)
|
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. |
Authors
Martin Nowak
License
Copyright © 1999-2026 by the D Language Foundation | Page generated by ddox.