~/talk

An Introduction to JVM Performance

Talkat JavaOne 2015 · 2015-10-25..10-29· [java]
slides:none on file

HotSpot runs methods at levels 0–4 using C1/C2 JIT with runtime profiling and speculative inlining, and about 90% of call sites are monomorphic, so inlining and devirtualization drive most speedups. Avoid megamorphic call sites and excess anonymous types; object pooling usually hurts because escape analysis removes short‑lived objects and avoids heap allocation. Measure with harnesses like JMH or Mission Control and inspect intrinsics and machine code (adopt's "watch"); false sharing and cache misses (reading large lines costs millions of instructions) cause far bigger slowdowns than micro-optimizations.

AI-written summary · about

  1. 0:00Start
  2. 2:56How a Java Program Is Run
  3. 4:50The Jvm Layer and the Processor Layer
  4. 5:52How Does Hotspot Run Your Code
  5. 14:35Single Inheritance
  6. 20:23Mega Morphic Call Sites
  7. 31:50Inheritance Model
  8. 39:45Code Elimination
  9. 45:37Intrinsics
  10. 47:08Sorting Algorithm
  11. 50:15False Sharing
  12. 55:17Heisenberg's Uncertainty Principle
  13. 56:46Safe Points
~/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.