OpenJDK: In the New Age of Concurrent Garbage Collectors
summary
Compares G1, Shenandoah and ZGC by design and measurable behavior: G1 is generational and uses stop‑the‑world compaction with a forwarding pointer in object headers and a 200 ms target pause budget, tracking updates with SATB pre‑write and remembered‑set post‑write barriers. Shenandoah does concurrent compaction with an indirection pointer per object plus read/write barriers and targets ~10 ms. ZGC uses colored pointers, off‑heap forwarding tables, striping and thread‑local handshakes to compact concurrently and can reclaim physical memory immediately, trading some throughput for low latency.
AI-written summary · about
chapters (13)
- 0:00Start
- 5:28Thread Local Handshakes vs Global STW
- 7:01Concurrent GC
- 8:47Heap Layout
- 10:38Copying Collector aka Compacting Collector aka Evacuation
- 15:07Collection Priority and Collection Set
- 20:01Algorithm & Other Considerations
- 22:25GC Phases of Marking & Compaction
- 35:11Concurrent Compaction
- 39:28GC Phares of Marking & Compaction
- 41:45Core Concept
- 44:33Concurrent Marking
- 50:22Example
related talks
01h 01mOpenJDK: In the new age of Concurrent Garbage Collectors
49mConcurrent Garbage Collectors: ZGC & Shenandoah
47mConcurrent Garbage Collectors: ZGC & Shenandoah
19mZ Garbage Collector: The Next Generation
52mGarbage collection for the humans
15mThree flavors of generational GC: G1, ZGC, Shenandoah
44mGarbage Collector: How to Tame the Beast and Make It Your Best Ally
25mGarbage Collection Primer
