[foreign-memaccess+abi] RFR: 8301801: Implement arena-centric API [v2]
    Maurizio Cimadamore 
    mcimadamore at openjdk.org
       
    Fri Feb 10 11:00:30 UTC 2023
    
    
  
On Thu, 9 Feb 2023 16:52:25 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> test/jdk/java/foreign/TestByteBuffer.java line 185:
>> 
>>> 183:         try (Arena arena = Arena.ofConfined()) {
>>> 184:             Arena scope = arena;
>>> 185:             MemorySegment segment = scope.allocate(tuples);;
>> 
>> Suggestion:
>> 
>>             MemorySegment segment = arena.allocate(tuples);
>
> Looks like there are several more like this in the rest of the tests as well.
> 
> If you don't feel like they're worth cleaning up then I'm fine with that as well.
Seems like the IDE refactoring played some tricks on me :-)
-------------
PR: https://git.openjdk.org/panama-foreign/pull/781
    
    
More information about the panama-dev
mailing list