[jdk22] RFR: 8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment, ValueLayout, long, long) spec mismatch in exception scenario

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Jan 10 15:25:25 UTC 2024


On Tue, 9 Jan 2024 08:10:16 GMT, Per Minborg <pminborg at 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?

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

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


More information about the core-libs-dev mailing list