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

Alan Bateman alanb at openjdk.org
Wed Nov 16 16:16:22 UTC 2022


On Tue, 15 Nov 2022 18:47:39 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:
> 
>   Fix typo in SegmentScope javadoc

src/java.base/share/classes/java/lang/foreign/SegmentScope.java line 8:

> 6: 
> 7: /**
> 8:  * A segment scope controls access to a memory segment.

A passing comment here is that "to a memory segment" hints of one-to-one relationship when it's actually one-to-many. Arena is specified to control the lifecycle "of memory segments".

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

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


More information about the hotspot-dev mailing list