D3 - Programming in 3D
drug
drug2004 at bk.ru
Mon Jun 15 14:38:31 UTC 2020
15.06.2020 13:40, FeepingCreature пишет:
> Your scenario sounds totally predictable? With refcounting you get a
> "free" mark phase (ref goes to 0), and then you know you're holding the
> only reference so you can just hand it off to a cleanup thread and stop
> thinking about it for the low cost of an atomic write.
>
How do you know that you have the only reference? the node can be both
the root and a leaf node.
> Now, cycles do make it fully GC but they're in the control of the
> developer and can usually be broken with weak pointers. In general,
> people don't mind costs so long as they feel they're responsible for
> them and can do something about them. This is why people will always
> distrust stop-the-world GC for realtime tasks.
More information about the Digitalmars-d
mailing list