Register a GC factory under the given name. This function must be called from a C constructor before druntime is initialized.
To use the registered GC, it's name must be specified gcopt runtime option, e.g. by passing , --DRT-gcopt=gc:my_gc_name as application argument.
name of the GC implementation; should be unique
function to instantiate the implementation Note: The registry does not perform synchronization, as registration is assumed to be executed serially, as is the case for C constructors.
Configuring the Garbage Collector
See Implementation
Register a GC factory under the given name. This function must be called from a C constructor before druntime is initialized.
To use the registered GC, it's name must be specified gcopt runtime option, e.g. by passing , --DRT-gcopt=gc:my_gc_name as application argument.