New candidate JEP: 454: Foreign Function & Memory API

Mark Reinhold mark.reinhold at oracle.com
Thu Sep 14 10:56:41 UTC 2023


2023/9/13 12:33:07 -0400, rony.flatscher at wu.ac.at:
> On 11.09.2023 22:21, Mark Reinhold wrote:
>> https://openjdk.org/jeps/454
>> 
>>   Summary: Introduce an API by which Java programs can interoperate with
>>   code and data outside of the Java runtime. By efficiently invoking
>>   foreign functions (i.e., code outside the JVM), and by safely accessing
>>   foreign memory (i.e., memory not managed by the JVM), the API enables
>>   Java programs to call native libraries and process native data without
>>   the brittleness and danger of JNI.
> 
> This JEP includes the "|--enable-native-access=M" and "||/.../ |the JAR-file manifest attribute 
> |Enable-Native-Access: ALL-UNNAMED| can be used /in an executable JAR//.../"||
> 
> Can you explain how to inhibit the warning in JRE (Java/JDK runtime environment) deployment cases 
> where neither a monolithic Java app nor an executable jar causes the JVM to get started up?
> 
> ...

Please take this discussion to the panama-dev list.

- Mark


More information about the jdk-dev mailing list