JDK-8282191 : Implementation of Foreign Function & Memory API (Preview)
  • Type: Enhancement
  • Component: core-libs
  • Affected Version: 19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-02-21
  • Updated: 2022-06-07
  • Resolved: 2022-05-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b23Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
API and implementation changes related to JEP 424.
Comments
Changeset: 2c5d1362 Author: Maurizio Cimadamore <mcimadamore@openjdk.org> Date: 2022-05-12 16:17:45 +0000 URL: https://git.openjdk.java.net/jdk/commit/2c5d136260fa717afa374db8b923b7c886d069b7
12-05-2022

Sorry about the issues with javadoc not rendering JLS links, and about specdiff being out of sync. Aside from those issues, some replies below: * FileChannel.map: I will use "size overflows the range of long" - but I still need separate condition to check that size >= 0 and offset >= 0 (otherwise nonsensical combos are still possible) * FunctionDescriptor::argumentLayouts: I've tweaked the javadoc of this methods to state that the returned list is immutable (I've looked at how MethodType::parameterTypes did that). * MemoryAddress - I will add "Might be negative" to the various dereference methods * MemorySegment::asOverlappingSlice - I will change return type to use Optional * I've added reference to C99 standard * MemorySession::equals - I've clarified the text w.r.t. asNonCloseable * MemorySession explicit vs. implicit close. I think there is some confusion here. The term "implicitly closed" has been used to denote a session that is closed automatically by a Cleaner. But I see how that creates tension with use of try with resources. I will try to simplify this area and just spec the behavior in terms of closeable sessions and non-closeable views.
27-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7888 Date: 2022-03-21 10:45:27 +0000
21-03-2022