GC optimizations you never knew existed
summary
Shows three concrete OpenJ9 GC hacks and measured effects: Dynamic breadth-first scan ordering uses JIT block hotness to depth-copy 1–2 hot fields during gencon/balanced scavenges, yielding 2–8% throughput gains, ~2–3% higher average GC pause, and negligible compile-time impact; double mapping of arraylets maps contiguous virtual memory to physical pages to avoid copies and reports ~30× speedups on array APIs; Off-heap management moves huge arrays out of the heap to cut in-heap pressure and avoid compaction with a calculable size bound.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 2:30Outline
- 6:12GenCon
- 10:20SetField
- 12:45Concurrent Scavenger
- 14:25Unconditional Copy
- 15:45Dynamic Broadening First Scan Ordering
- 18:00Hot Fields
- 19:10Object Axis Graph
- 20:30Example
- 21:30Locality
- 22:05Dynamic breadth first scan ordering
- 23:20What is a compiler
- 23:55Optimized compiler
- 24:10Dynamic compilation
- 24:40Dynamic compilation infrastructure
- 31:40Scan the root set
- 37:15Cache flush
- 40:05Summary diagram
- 41:45Summary results
- 55:15Arraylights
