GC.removeRoot

void removeRoot(const void * p) nothrow @nogc pure;

Removes the memory block referenced by p from an internal list of roots to be scanned during a collection. If p is null or is not a value previously passed to addRoot() then no operation is performed.

Parameters

pA pointer into a GC-managed memory block or null.