On Saturday, 19 September 2015 at 19:25:31 UTC, Ola Fosheim
On Saturday, 19 September 2015 at 19:17:38 UTC, Daniel Kozak
No, collection could not occure if we speaking about current D
implementation. So it safe to set pointer before addRoot.
It can be triggered by another thread.
ptr = somestack.pop();
someglobalptr = ptr;
// ptr register flushed
// collection triggered by other thread
// other thread allocated the same memory for some other object