Three upcoming improvements to Java's G1 garbage collector are covered: JEP 522 (simpler write barriers via a dual card table, already integrated in JDK 26, yielding up to 15% throughput gains), JEP 523 (making G1 the universal default GC, replacing Serial GC even on constrained single-CPU/low-memory machines), and a draft JEP for automatic dynamic heap sizing that lets G1 self-tune between 4MB and available memory based on allocation rate, memory pressure, and other factors. A parallel draft JEP for automatic heap sizing in ZGC is also briefly noted.

8m read timeFrom nipafx.dev
Post cover image
Table of contents
▚ Garbage Collection Primer▚ Simpler Write Barriers for G1▚ Make G1 The True Default▚ Automatic Heap Sizing▚ Also, ZGC

Sort: