[jdk22] RFR: 8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment, ValueLayout, long, long) spec mismatch in exception scenario
Per Minborg
pminborg at openjdk.org
Fri Jan 12 14:44:27 UTC 2024
On Wed, 10 Jan 2024 15:23:01 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> test/jdk/java/foreign/TestSegmentAllocators.java line 234:
>>
>>> 232: // WrongThreadException if this method is called from a thread {@code T},
>>> 233: // such that {@code source.isAccessibleBy(T) == false}
>>> 234: CompletableFuture<Arena> future = CompletableFuture.supplyAsync(Arena::ofConfined);
>>
>> I believe TestScopedOperations should check for WTE as well?
>
> That test has two methods: `testOpAfterClose` and `testOpOutsideConfinement`, which are executed on all the test cases.
Good idea. We could do that in a separate PR.
-------------
PR Review Comment: https://git.openjdk.org/jdk22/pull/42#discussion_r1450537639
More information about the core-libs-dev
mailing list