Report a bug
If you spot a problem with this page, click here to create a Bugzilla 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 using a local clone.

core.internal.gc.impl.conservative.gc

Contains the garbage collector implementation.
Authors:
Walter Bright, David Friedman, Sean Kelly
nothrow @nogc void invalidate(void[] mem, ubyte pattern, bool writable);
Mark the specified memory region as uninitialized - reading from this region is an error. If writable is false, writing to it is also an error.
nothrow T undefinedRead(T)(ref T var);
Read memory that should otherwise be marked as unreadable (e.g. free lists overlapped with unallocated heap objects).
nothrow void undefinedWrite(T)(ref T var, T value);
Write memory that should otherwise be marked as unwritable.