Shenandoah: the garbage collector that could (part 2)
summary
A deep dive into Shenandoah low-pause garbage collector internals: after converting main phases to concurrent work, remaining pauses come from short stop-the-world activities like scanning GC roots, handling language features aware of GC (e.g., weak references), safepoint implementation issues, and OS memory sharing. The talk examines these specific problems, explores JVM-level solutions, and suggests practices developers of low-pause Java systems can adopt to avoid those pitfalls.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:27Shenandoah GC optimizations
- 2:30Safepoints mechanics
- 8:09Safepoint overhead
- 10:16Loop strip mining
- 12:00Safepoint sync issues
- 14:12GC pause root scanning
- 19:57Synchronization roots
- 23:49Monitor inflation
- 25:18Class static roots
- 27:06String table roots
- 29:17Weak references
- 35:38Resurrecting weak refs
- 38:07Weak ref lifecycle
- 39:53Class unloading
- 41:41Epilogue cleanup
- 44:18Method scanning
- 46:48Method scanning optimizations
- 47:09Shenandoah memory footprint
- 51:08Heap sizing heuristics
- 53:33Memory tuning strategies
- 55:23Low footprint GC
- 56:26Ultra-low pauses
- 57:10Diagnosing GC issues
