News for hackers. Stuff that matters.
Re:Getting to Go: Garbage collection and runtime issues by the8472 on Tuesday July 17, 2018 @04:54PM (#17553280)
Wouldn't a non-copying generational collector with bump allocation be a recipe for fragmentation?
Re:Getting to Go: Garbage collection and runtime issues by pcwalton on Tuesday July 17, 2018 @04:54PM (#17553289)
Yes. That is why they have to be copying collectors.
Re:Getting to Go: Garbage collection and runtime issues by readittwice on Tuesday July 17, 2018 @05:17PM (#17553487)
Isn'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.

Re:Getting to Go: Garbage collection and runtime issues by pcwalton on Tuesday July 17, 2018 @05:31PM (#17553617)
I 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.