low-latency GC
Ola Fosheim Grostad
ola.fosheim.grostad at gmail.com
Sun Dec 6 08:59:49 UTC 2020
On Sunday, 6 December 2020 at 08:36:49 UTC, Bruce Carneal wrote:
>> Yes, but they don't allow low level programming. Go also
>> freeze to sync threads this has a rather profound impact on
>> code generation. They have spent a lot of effort on sync
>> instructions in code gen to lower the latency AFAIK.
>
> So, much of the difficulty in bringing low-latency GC to dlang
> would be the large code gen changes required. If it is a
> really big effort then that is all we need to know. Not worth
> it until we can see a big payoff and have more resources.
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
More information about the Digitalmars-d-learn
mailing list