~/talk

Safety first

Talkat JVM Language Summit 2015 · 2015-08-10..08-12· [java, security]
slides:none on file

Details a concrete strategy to replace Unsafe for atomic and memory-layout use cases by introducing variable handles, an array mismatch intrinsic and leveraging get and put unaligned methods. Shows a vectorized mismatch implementation, applies it to ForkJoinPool hot paths, and reports performance on par with Unsafe under C1/C2 while noting increased startup/early-GC costs from added static initialization. Demonstrates which bounds-check intrinsics and index-shifting transforms HotSpot needs to produce nearly identical machine code to hand-written Unsafe.

AI-written summary · about

  1. 0:00Intro
  2. 0:59An "internal detail"
  3. 2:37Use cases to features
  4. 3:09Near term focus
  5. 3:29Replacement strategy
  6. 4:29Array bounds checks
  7. 6:16Array Mismatch
  8. 10:17Equals with long[]
  9. 10:54Performance results
  10. 11:53Vectorization future?
  11. 12:35Current situation
  12. 13:15Variable handles goals
  13. 14:09Variable kinds
  14. 14:30Variable types
  15. 14:47Access modes
  16. 17:29Unsafe ++
  17. 18:18Signature polymorphic methods
  18. 21:21Lookup
  19. 21:57Invocation
  20. 24:04invokeExact
  21. 25:14With target typing?
  22. 25:35Performance: macro
  23. 27:30Under the hood
  24. 28:09Unsafe with
  25. 30:52VarHandle with bounds checks
  26. 35:38Exotic VarHandles
  27. 37:47VarHandle with FJP.Work Queue
~/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.