[foreign-memaccess+abi] RFR: 8293400: Modify static constructors in MemorySegment [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Sep 13 13:41:16 UTC 2022


On Tue, 13 Sep 2022 13:24:40 GMT, Per Minborg <duke at openjdk.org> wrote:

>> This PR changes the `MemorySegment` static constructors to be more like the one of `ByteBuffer`.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update after comments

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

> 953:      * Creates a native memory segment with the given layout.
> 954:      * <p>
> 955:      * The returned memory segment is associated with a new {@linkplain MemorySession#openImplicit implicit}

I believe this javadoc paragraph should be copied to other overloads as well?

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

PR: https://git.openjdk.org/panama-foreign/pull/718


More information about the panama-dev mailing list