On Wed, 27 Nov 2024 16:12:04 GMT, Quan Anh Mai <qa...@openjdk.org> wrote:
> Hi, > > This patch resolves some issues I found that the tests wrongly assume > sufficient alignment from the segment returned by `Arena::allocate`. > > Please take a look and leave your reviews, thanks a lot. test/jdk/java/foreign/TestByteBuffer.java line 414: > 412: ByteBuffer bb; > 413: try (Arena arena = Arena.ofConfined()) { > 414: MemorySegment segment = arena.allocate(bytes, Long.BYTES); Why does this segment need to be aligned? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/22415#discussion_r1860976974