GC.collect

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.

struct GC
extern (C) pragma(mangle, "gc_collect") static @safe nothrow pure
void
collect
()

Meta