low-latency GC

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sun Dec 6 15:44:32 UTC 2020


On Sunday, 6 December 2020 at 14:45:21 UTC, Bruce Carneal wrote:
>> Well, you could in theory avoid putting owning pointers on the 
>> stack/globals or require that they are registered as gc roots. 
>> Then you don't have to scan the stack. All you need then is 
>> write barriers. IIRC
>
> 'shared' with teeth?

It was more a hypothetical, as read barriers are too expensive. 
But write barriers should be ok, so a single-threaded incremental 
collector could work well if D takes a principled stance on 
objects not being 'shared' not being handed over to other threads 
without pinning them in the GC.

Maybe a better option for D than ARC, as it is closer to what 
people are used to.




More information about the Digitalmars-d-learn mailing list