Begins a full collection. While the meaning of this may change based
on the garbage collector implementation, typical behavior is to scan
all stack segments for roots, mark accessible memory blocks as alive,
and then to reclaim free space. This action may need to suspend all
running threads for at least part of the collection process.
structGC
extern (C) pragma(mangle, "gc_collect") static @safe nothrow pure
Begins a full collection. While the meaning of this may change based on the garbage collector implementation, typical behavior is to scan all stack segments for roots, mark accessible memory blocks as alive, and then to reclaim free space. This action may need to suspend all running threads for at least part of the collection process.