3 ms·
Interesting! Is there a more detailed post about this? I wonder how they decide which objects are rooted only by the stack. Is it part of the write barrier, or
by ridiculous_fish 7y ago
Interesting! Is there a more detailed post about this?
I wonder how they decide which objects are rooted only by the stack. Is it part of the write barrier, or computed at mark time?
- ufo 7y agoI think it just forces objects to survive more than one collection before moving out of the nursery, without having a special logic for whether they were rooted on the stack or not. But I am not 100% sure so don't quote me on that. https://github.com/lua/lua/blob/6f1c033d72af8fe65bb67e17a242314b6aeb182f/lgc.c#L1133 https://github.com/lua/lua/blob/6f1c033d72af8fe65bb67e17a242...