4 ms·
Yes. That is why they have to be copying collectors.
by pcwalton 8y ago
Yes. That is why they have to be copying collectors.
- readittwice 8y agoIsn't JSC kind of an exception to this? JSC has a generational non-copying GC. It uses bump-pointer allocation for empty blocks (block=memory with objects of same size) and then switches to allocation via free-list if the block is full. For implementing the generational GC they simply use sticky mark-bits.
- pcwalton 8y agoI don't consider what JSC does bump allocation—it's just a highly optimized traditional allocator. Most malloc implementations have bump allocation somewhere. SpiderMonkey used to use an allocator much like that of JSC before it switched to copying generational GC, to significant performance improvements.