RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v6]

Paul Sandoz psandoz at openjdk.org
Mon Nov 7 19:34:26 UTC 2022


On Mon, 7 Nov 2022 15:00:02 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> This PR contains the API and implementation changes for JEP-434 [1]. A more detailed description of such changes, to avoid repetitions during the review process, is included as a separate comment.
>> 
>> [1] - https://openjdk.org/jeps/434
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Make memory session a pure lifetime abstraction

src/java.base/share/classes/java/lang/foreign/MemorySegment.java line 104:

> 102:  * Every memory segment is associated with a {@linkplain MemorySession memory session}. This ensures that access operations
> 103:  * on a memory segment cannot occur when the region of memory which backs the memory segment is no longer available
> 104:  * (e.g. after the memory session associated with the accessed memory segment is no longer {@linkplain MemorySession#isAlive() alive}.

Missing close brace:
Suggestion:

 * (e.g., after the memory session associated with the accessed memory segment is no longer {@linkplain MemorySession#isAlive() alive}).

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

PR: https://git.openjdk.org/jdk/pull/10872


More information about the core-libs-dev mailing list