Hacker News new | ask | show | jobs
by kbolino 419 days ago
Do you think the problem that is addressed by offheap could also have been addressed with a generational garbage collector?
1 comments

For the problems that arena allocators solve, relatively short lived allocations which die soon, yes. A generational collector would allow for faster allocation rates (a thread local bump allocator would become easy to use).

But very long lived data structures, like caches and in memory databases still need to be marked during full heap garbage collection cycles. These are less frequent with a generational collector though.