RFR: 8304265: Implementation of Foreign Function and Memory API (Third Preview)

Paul Sandoz psandoz at openjdk.org
Tue Mar 21 01:17:42 UTC 2023


On Fri, 17 Mar 2023 15:42:56 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> API changes for the FFM API (third preview)
> 
> Specdiff:
> https://cr.openjdk.org/~pminborg/panama/21/v1/specdiff/overview-summary.html
> 
> Javadoc:
> https://cr.openjdk.org/~pminborg/panama/21/v1/javadoc/java.base/module-summary.html

src/java.base/share/classes/java/lang/foreign/SymbolLookup.java line 56:

> 54:  *     <li>It can be passed to an existing {@linkplain Linker#downcallHandle(FunctionDescriptor, Linker.Option...) downcall method handle}, as an argument to the underlying foreign function.</li>
> 55:  *     <li>It can be {@linkplain MemorySegment#set(AddressLayout, long, MemorySegment) stored} inside another memory segment.</li>
> 56:  *     <li>It can be used to access the region of memory backing a global variable (this might require

Suggestion:

 *     <li>It can be used to access the region of memory backing a global variable (this requires

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13079#discussion_r1142812300



More information about the build-dev mailing list