~/talk

Unsafe (and Java 9/10) (RU)

Talkat JavaDay Kyiv 2015 · 2015-11-06..11-07· [java]
links:none on file
slides:none on file

Shows what sun.misc.Unsafe actually does: arbitrary memory reads/writes, allocate/free off-heap, and corrupt objects by writing at offsets — a simple offset write turns a 42 into 1000 or crashes the JVM. Demonstrates real uses: faster CAS/atomic ops, custom allocators for huge arrays and mmaped I/O, and Disruptor-style 6M/sec pipelines. Explains that Java 9+ wraps or hides Unsafe behind modules, that some functionality gets public replacements while other bits may be deprecated or removed by Java 10, and the ecosystem cost of rewriting popular libs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08What is Unsafe and why
  3. 7:58Unsafe in action
  4. 13:34Dangers of Unsafe
  5. 16:26Native access and JNI
  6. 20:06Memory allocation and hashcode issues
  7. 24:27Java 9 and Unsafe's fate
  8. 33:50Oracle's solution and future
  9. 40:30JVM optimizations and entry points
  10. 44:40Conclusion and Q&A
~/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.