RFC: Pinning interface for the GC
David Nadlinger
see at klickverbot.at
Sat Oct 13 13:00:53 PDT 2012
On Saturday, 13 October 2012 at 19:34:29 UTC, Alex Rønne
Petersen wrote:
> There is a difference: Adding the object itself as a root does
> not actually guarantee that the object *itself* might not be
> collected. At least, this is how I have to assume things work
> given that this is not guaranteed here:
> http://dlang.org/phobos/core_memory.html#addRoot
Actually, it does: the internal array of added roots is simply
considered an additional range to be scanned by the GC
implementation. The docs should probably be clarified in this
regard.
David
More information about the Digitalmars-d
mailing list