~/talk

JIT Compiler From the Ground Up

Talkat JavaOne 2026 · 2026-03-17..03-19· [java]
slides:none on file

HotSpot’s JIT story is concrete: a lightweight C1 compiler gets code running fast early (C1 ~10x vs interpreter), a slower C2 uses detailed profiles to speculate and optimize more deeply (compilation cost single-digit× C1, typical wins C2: 10%–2× over C1), and tiered compilation moves from interpreting to C1 to C2. Key mechanisms covered include profiling-based inlining, traps and deoptimization to recover correctness, escape analysis → scalar replacement (removes heap allocs), intrinsics for platform special cases, and fuzzing plus benchmarks for regression testing.

AI-written summary · about

  1. 0:00Intro
  2. 0:49Big Picture
  3. 4:56Tiered Compilation
  4. 10:11Speculation & Traps
  5. 14:28Deoptimization
  6. 16:42Hoisting & Sinking
  7. 17:39Heuristics
  8. 20:56Inlining
  9. 24:21Code Quality
  10. 27:48Constant Folding
  11. 31:42Escape Analysis & Scalar Replacement
  12. 36:10Value Types
  13. 38:45Outside Contribution
  14. 40:26Intrinsics
  15. 42:48Working on Compilers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.