[foreign-jextract] RFR: 8260705: jextract crash with libbart's types.h

Jorn Vernee jvernee at openjdk.java.net
Mon Feb 1 12:41:52 UTC 2021

On Mon, 1 Feb 2021 12:30:55 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:

> Problematic cursors are filtered in TreeMaker

Marked as reviewed by jvernee (Committer).

test/jdk/tools/jextract/Test8260705.java line 51:

> 49:             checkMethod(FooClass, "c$set", void.class, MemorySegment.class, byte.class);
> 50:             checkMethod(FooClass, "c$set", void.class, MemorySegment.class, long.class, byte.class);
> 51: 

Might be nice to check the offset of `c` here, to see if it's properly the second byte of the struct. (since the bitfield before it is supposed to align `c` to the next byte).


PR: https://git.openjdk.java.net/panama-foreign/pull/443

More information about the panama-dev mailing list