A separate GC idea - multiple D GCs

rikki cattermole rikki at cattermole.co.nz
Sat Jan 22 10:05:07 UTC 2022

On 22/01/2022 10:24 PM, Ola Fosheim Grøstad wrote:
> Yes, this is better, although you would need to change the language 
> semantics so that non-shared means local to a fiber/actor as the 
> fiber/actor can move from one thread to another.

This isn't what I had in mind.

By telling the GC about fibers, it should be able to take advantage of 
this information and limit the time it takes to do stop the world scanning.

If it knows memory is live, it doesn't need to scan for it.

If it knows that memory isn't referenced in that fiber anymore, then it 
only needs to confirm that it isn't anywhere else.

More information about the Digitalmars-d mailing list