News for hackers. Stuff that matters.
Re:Garbage Collection by ridiculous_fish on Saturday November 30, 2019 @04:15PM (#21672184)
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?

Re:Garbage Collection by ufo on Saturday November 30, 2019 @05:01PM (#21672383)
I 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/6f1c033d72af8fe65bb67e17a242...