[foreign-memaccess+abi] RFR: 8296417: Make memory session a pure lifetime abstraction [v3]

Jorn Vernee jvernee at openjdk.org
Fri Nov 4 22:27:14 UTC 2022


On Fri, 4 Nov 2022 22:12:27 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> test/jdk/java/foreign/TestSegmentAllocators.java line 501:
>> 
>>> 499:     static Object[][] allocators() {
>>> 500:         return new Object[][] {
>>> 501:                 { SegmentAllocator.implicitAllocator() },
>> 
>> I guess this case could be replaced with `SegmentAllocator.nativeAllocator(MemorySession.implicit())`
>
> yes, but except for the different session, it's not like the test is going to stress a different allocation implementation?

Yeah, that's true

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

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


More information about the panama-dev mailing list