[foreign-memaccess+abi] RFR: 8265222: revisit foreign library loading

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed May 5 16:52:08 UTC 2021

On Wed, 5 May 2021 16:16:50 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:

> LibraryLookup removed. CLinker.findNative added. System.loadLibrary has to be used to load library

Looks like a good simplification! Some comments added.

src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/CLinker.java line 133:

> 131: 
> 132:     @CallerSensitive
> 133:     public static Optional<MemoryAddress> findNative(String name) {

Security manager checks should be removed here. Also, the method is missing javadoc.


PR: https://git.openjdk.java.net/panama-foreign/pull/526

More information about the panama-dev mailing list