~/talk

Heart Surgery: HotSpot Debugging at the OS Level

Talkat Joker 2014 · 2014-10-20..10-21· [java, linux-and-operating-systems]
links:none on file
slides:none on file

Builds a debug OpenJDK locally in minutes and uses native tools to inspect HotSpot: enabling 1,300 VM options, running count bytecodes: ~3 million on a tiny HelloWorld, and using GDB plus HotSpot helpers like print_native_stack (PNS) and a breakpoint callback to get mixed Java/native stacks. Shows a real JIT bug: C2 emits an ADD with a 32‑bit immediate that wraps a 64‑bit constant for an AtomicLong, and the fix is a change in the AD file and a rebuild that eliminates the wrong zeroed add.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Building OpenJDK from source
  3. 4:50Debugging HotSpot with GDB
  4. 12:30Template interpreter internals
  5. 20:50Debugging generated code
  6. 32:50JIT compiler and tiered compilation
  7. 37:50Debugging JIT-compiled code
  8. 42:40Fixing the atomic long bug
  9. 53:20Print opto assembly analysis
  10. 57:30Fixing the AD file and rebuilding
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.