News for hackers. Stuff that matters.
Re:What Should I Know About Garbage Collection as a Java Dev... by zackangelo on Tuesday January 10, 2023 @05:23PM (#34332394)
Most JVMs take advantage of a thread local "bump" allocator[1] as well to avoid having to cross JVM or kernel boundaries to allocate memory, which can result in huge speedups for memory-intensive use cases.

[1] https://shipilev.net/jvm/anatomy-quarks/4-tlab-allocation/

Re:What Should I Know About Garbage Collection as a Java Dev... by eldenring on Tuesday January 10, 2023 @05:37PM (#34332530)
Bump allocators are incredibly fast, and are super efficient in generational GCs where compaction is super cheap, however almost all (maybe all) modern languages don't usually cross kernel boundaries when allocating memory, including C++ malloc.