[foreign-memaccess+abi] RFR: 8301801: Implement arena-centric API [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Feb 10 10:56:16 UTC 2023


On Thu, 9 Feb 2023 16:45:49 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits:
>> 
>>  - Merge branch 'foreign-memaccess+abi' into arena_centric
>>  - Fix typo
>>  - Clarify javadoc for Arena::close
>>  - Fix linker javadoc
>>  - Initial push
>
> test/jdk/java/foreign/NativeTestHelper.java line 103:
> 
>> 101:     public static MemorySegment allocateMemory(long size) {
>> 102:         try {
>> 103:             return ((MemorySegment) MALLOC.invokeExact(size)).asUnbounded();
> 
> Not sure why `asUnbounded` is needed here, since `C_POINTER` already has an unbounded target layout attached.

Same as the other asUnbounded change - this is no longer required. Good catch.

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

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


More information about the panama-dev mailing list