On Tue, 9 Jan 2024 08:10:16 GMT, Per Minborg <[email protected]> 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?

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

PR Review Comment: https://git.openjdk.org/jdk22/pull/42#discussion_r1447535353

Reply via email to