~/talk

Calling Native Methods Without JNI Overhead

TalkinRussianat Joker 2022 · 2022-11-08..11-19· [java]
links:none on file
slides:none on file

The talk explains approaches to calling native (non-Java) code from Java—covering JNI, JNA, JNR-FFI and Project Panama—and focuses on the overheads these interfaces introduce. It presents a replacement for removed HotSpot Critical Natives: a library that uses JVMCI (the JVM Compiler Interface) to enable faster external function calls, describes the approach’s limitations, and compares its performance to the alternatives.

AI-written summary · about

  1. 0:00Introduction
  2. 2:37Native method calls problem
  3. 8:05Java vs JNI speed
  4. 11:16High overhead causes
  5. 19:08JDK 20 barrier optimizations
  6. 21:02Native method usage examples
  7. 27:13Intrinsics issues
  8. 33:53Panama limitations
  9. 34:15Machine code generation
  10. 41:47Nalim library for JMC
  11. 43:54Performance results
  12. 46:44Limitations and licensing
~/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.