[foreign-memaccess+abi] RFR: 8293400: Modify static constructors in MemorySegment [v2]
Per Minborg
duke at openjdk.org
Tue Sep 13 12:56:18 UTC 2022
On Tue, 13 Sep 2022 11:58:45 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Simplify creatons of MemorySegments in tests
>
> test/jdk/java/foreign/TestByteBuffer.java line 764:
>
>> 762: public static Object[][] segments() throws Throwable {
>> 763: return new Object[][] {
>> 764: { (Supplier<MemorySegment>) () -> MemorySession.openImplicit().allocate(16) },
>
> This could use `allocateNative`
I intentionally left that as-is to adhere to the `openConfined()` on the following line.
-------------
PR: https://git.openjdk.org/panama-foreign/pull/718
More information about the panama-dev
mailing list