A deep-dive podcast episode with Stefan Johansson, a HotSpot GC engineer at Oracle, covering G1 garbage collector internals and the throughput improvements coming in JDK 26 via JEP 522. The discussion covers write barriers, card tables, concurrent marking, concurrent refinement, and the synchronization overhead that has historically made G1 slower than Parallel GC. The key improvement in JDK 26 introduces a dual card table design that replaces fine-grained per-write synchronization with coarser-grained handshaking when switching between tables, reducing barrier overhead with only ~0.2% additional native memory cost. The episode also touches on JEP 523, which aims to make G1 the universal default GC across all configurations including small heaps and single-CPU environments.
Sort: