Go 1.5
Daniel Kozak via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sat Sep 19 12:17:24 PDT 2015
No, collection could not occure if we speaking about current D GC
implementation. So it safe to set pointer before addRoot.
Dne 19. 9. 2015 21:00 napsal uživatel "Ola Fosheim Grøstad via
Digitalmars-d-announce" <digitalmars-d-announce at puremagic.com>:
> On Saturday, 19 September 2015 at 18:20:16 UTC, Ola Fosheim Grøstad wrote:
>
>> I'm not sure if the current collector scans all registers, or just scans
>> the stack?
>>
>
> According to the docs it scans all registers, but even then one must be
> careful and do addRoot before the pointer is set, otherwise the CPU might
> flush the register and a collection could run between setting the pointer
> and addRoot...?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20150919/8f3cbe32/attachment.html>
More information about the Digitalmars-d-announce
mailing list