On Thu, 23 Feb 2023 06:21:05 GMT, Martin Doerr <mdo...@openjdk.org> wrote:

> I have removed the size restriction for structs. Passing a struct consisting 
> of 1 char works (on Little Endian). However, passing a struct consisting of 3 
> chars doesn't (getting IndexOutOfBoundsException: Out of bound access on 
> segment MemorySegment). Neither on PPC64, nor on x86. Is that known or should 
> I file a bug for that?

I think you might be running into: https://bugs.openjdk.org/browse/JDK-8303017 
which was recently found. (If you have a simpler test case please add it to the 
JBS issue, in a comment)

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

PR: https://git.openjdk.org/jdk/pull/12708

Reply via email to