See the JBS issue. This patch makes sure to only align the stack offset for struct arguments passed on the stack, when we are actually passing the argument on the stack. This ensures subsequent arguments that need to be packed are placed at the correct stack offset.
I've added a new test that tests this exact scenario as well. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Add more test cases - Re-add removed @compile directive - Fix signature - allow test value layouts for structs/unions with fields that don't have a name - Add physical test as well - Only align stack if we're not allocating in registers Changes: https://git.openjdk.org/jdk/pull/34130/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=34130&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8398029 Stats: 239 lines in 5 files changed: 233 ins; 1 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/34130.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/34130/head:pull/34130 PR: https://git.openjdk.org/jdk/pull/34130
