On Wed, 10 Jan 2024 15:22:06 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
>> 8321786: SegmentAllocator:allocateFrom(ValueLayout, >> MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario > > 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. ------------- PR Review Comment: https://git.openjdk.org/jdk22/pull/42#discussion_r1447536542