Skip to content

Commit

Permalink
Merge pull request ibmruntimes#677 from ChengJin01/ffi_jtreg_fix_stru…
Browse files Browse the repository at this point in the history
…ct_padding_aix_jdknext

Adjust the padding bytes of struct on AIX
  • Loading branch information
keithc-ca authored Oct 18, 2023
2 parents 30c27fb + 065099c commit 9e00546
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/jdk/java/foreign/nested/TestNested.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved
* ===========================================================================
*/

/*
* @test
* @enablePreview
Expand Down Expand Up @@ -175,10 +181,10 @@ public static Object[][] nestedLayouts() {
).withName("S8");
static final StructLayout S9 = MemoryLayout.structLayout(
C_CHAR.withName("f0"),
MemoryLayout.paddingLayout(7),
MemoryLayout.paddingLayout(C_DOUBLE.byteAlignment() - 1),
MemoryLayout.sequenceLayout(2, C_DOUBLE).withName("f1"),
C_CHAR.withName("f2"),
MemoryLayout.paddingLayout(7),
MemoryLayout.paddingLayout(C_DOUBLE.byteAlignment() - 1),
S8.withName("f3")
).withName("S9");
static final UnionLayout U8 = MemoryLayout.unionLayout(
Expand Down

0 comments on commit 9e00546

Please sign in to comment.