Native Code, Off-Heap Data and Java
summary
Covers how Java programs interact with native code and manage off-heap data, describing the existing techniques and their difficulties. Explains JDK 9 additions (VarHandles, JEP 193) and planned Project Panama features: a new foreign-function interface to replace JNI (JEP 191), a layout descriptor language (LDL), and Arrays 2.0.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:27JNI overview and limits
- 10:14JNI pros and cons
- 19:14JNR for native code
- 26:13Project Panama overview
- 34:34Data layout and access
- 44:21Off-heap data handling
- 55:08VarHandles in Java 9
- 59:53Summary and Q&A
related talks
01h 01mJava Enable Preview: Foreign Function and Memory Interface
01h 04mProject Panama Unleashing Native Libraries
55mBare metal Java
55mJava 19 Project Panama 4 Newbies
49mThe future is native
16mForeign Function and Memory API
47mInterconnecting Java and Native Code with the FFM API
29mEasily Leverage Native Functions with Project Panama from Java
