eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.23k stars 712 forks source link

JEP 472: Prepare to Restrict the Use of JNI #19680

Open ChengJin01 opened 3 weeks ago

ChengJin01 commented 3 weeks ago

Summary (from https://openjdk.org/jeps/472)

Issue warnings about uses of the Java Native Interface (JNI) and adjust warnings from the Foreign Function & Memory (FFM) API to be consistent with JNI. All such warnings aim to prepare developers for a future release that provides integrity by default by uniformly restricting JNI and the FFM API. Application developers can avoid current warnings and future restrictions by selectively enabling the interaction of Java and native code where it is critical to the application.

Goals

FYI: @tajila, @pshipton

ChengJin01 commented 3 weeks ago

The JEP is still in the Candidate status (which is not targeted for JDK23) but the related code has been implemented via https://bugs.openjdk.org/browse/JDK-8331671. So it is expected to be merged to the repo soon if no more concerns in there.

pshipton commented 3 weeks ago

We'll assume Java 24 for now.