3 ms·
Garbage collectors typically do not differentiate live-and-mutated from live-but-unmutated, which is what is needed here.
by gizmo686 1y ago
Garbage collectors typically do not differentiate live-and-mutated from live-but-unmutated, which is what is needed here.
- pfdietz 1y agoGenerational collectors need to record when older generation objects are modified (by card marking, for example), so they can distinguish mutated from unmutated.
- masklinn 1y agoAfaik card marking and other similar schemes do not care about (or track) mutated objects. They track cross-generational references, which have to have been caused by mutation but only a very selective subset thereof. And card marking does not even track at the object level, it tracks pages which have at some point contained a pointer to the newgen.