3 ms·
Luajit does something vaguely like this: http://wiki.luajit.org/New-Garbage-Collector#arenas_block-mark-bitmaps http://wiki.luajit.org/New-Garbage-Collector#are
by smaddox 7y ago
Luajit does something vaguely like this: http://wiki.luajit.org/New-Garbage-Collector#arenas_block-mark-bitmaps http://wiki.luajit.org/New-Garbage-Collector#arenas_block-ma...
It doesn't need to access the actual data when sweeping.
- ufo 7y agoThe latest version of LuaJIT is still using the old GC. As far as I know the new GC design is in limbo, with no plan to implement it in the near future.
- tom_mellior 7y agoIIUC that only moves the mark bits out of the objects. It still has to access the objects while marking. I think the parent proposed moving pointers out of the objects, so you wouldn't even have to touch the user's objects while marking.