~/talk

Sampling Optimized Code for Type Feedback

Talkat DLS 2020 · 2020-11-17..11-20· [compilers-and-language-design]
links:none on file
links:none on file
name:Jan Vitek
linkedin:jvitek
slides:none on file

Prototype integrates sampling into the Ř JIT to recover type feedback lost in optimized tiers and triggers recompiles when samples contradict interpreter-collected types. It extracts native stack-layout mappings, uses PMU-based sampling of top frames to detect narrowing (e.g. a slot previously mixed now only doubles), and feeds sampled types back to reoptimize. Prototype runs with typical overhead <10% but lacks robust bail-out heuristics and can still cause deopts if samples mislead.

AI-written summary · about

  1. 0:00JIT 101
  2. 3:16Problem
  3. 3:50Sampling
  4. 4:36Strategy
  5. 5:45Our Approach
  6. 9:47Success
  7. 12:36Uncooperative Environment
  8. 14:19Measurement Issues
  9. 15:38Profiling Optimized Code?
~/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.