Adding generational support to Shenandoah GC
summary
Amazon Corretto adds generational Shenandoah to shrink required heap from ~30% usable (to avoid long pauses) toward ~65–75% utilization by running a fast, frequent young-gen collector plus a low-frequency old-gen collector concurrently. Experiments show non-generational runs hit hundreds to thousands of GCs with ~381 degenerated stop-the-world events in one test causing >1s latencies; the generational design reclaims similar live memory with much lower total heap (simulations and a visualizer demo keep total memory below ~30GB for a 33GB live set). Engineering work includes card-mark remembered set barriers (~2–5% mutator cost), mixed evacuations limited per pass, and an early-access release pending more tuning and full-GC support.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker background
- 1:13Overview of Shenandoah GC and motivation
- 2:17Shenandoah performance benefits
- 7:12Amazon’s switch to Shenandoah
- 14:40Limitations of non-generational Shenandoah
- 18:35Degenerated garbage collections explained
- 22:07Design of generational Shenandoah
- 27:50Implementation status and JEP 404
- 38:28Milestones and progress
- 39:09Live demonstration of generational GC
- 51:03Early access release plans
- 53:13Future improvements and wishlist
- 1:01:18Summary and team acknowledgment
- 1:02:41Q&A session
