Z Garbage Collector: Look Ma, ~No Pause!
summary
Claims Z Garbage Collector is production ready in JDK 15 and delivers sub-millisecond pauses (typical worst ~0.55 ms, stressed to ~2.1 ms) while scaling to 16 TB heaps. Benchmarks: heap‑fragger and hyperallocate on a 200 GB heap with 50% live data (100 GB) and ~1 GB/s allocation; G1 sees multi‑second tail pauses (9.5 s and ~1.2 s in tests) while ZGC uses colored pointers and load barriers, thread‑local handshakes and off‑heap forwarding tables to compact concurrently and avoid long stop‑the‑world pauses.
AI-written summary · about
chapters (19)
- 0:00Start
- 10:32Design a Basic Garbage Collector
- 15:27Throughput Maximizing Gc
- 16:07Underlying Cause for these Long Pauses
- 18:00Design a Latency Sensitive Garbage Collector
- 19:19How Do We Get to Low Latency Collectors Being the Default
- 27:47Virtual Address Tagging
- 34:25What Does Concrete Marking Do
- 36:09Space Invariants
- 37:29Concurrent Compaction
- 41:40Thread Local Handshake
- 42:43Performance Impact
- 43:05Fragmentation
- 43:44Test Configuration
- 51:56Reasons for Triggering a Garbage Collector in Zgc
- 52:45Allocation Rate
- 53:01Allocation Stall
- 56:37Gc Hyster Chart
- 57:35Compare Cgc to G1 Gc
