Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass struct correctly in memory for Windows upcall thunk #16344

Merged
merged 1 commit into from Nov 28, 2022

Conversation

0xdaryl
Copy link
Contributor

@0xdaryl 0xdaryl commented Nov 21, 2022

Structs <= 8 bytes passed in argument position > 4 are passed on the stack for the Windows x64 calling convention.

Fixes #16235

Signed-off-by: Daryl Maier maier@ca.ibm.com

Structs <= 8 bytes passed in argument position > 4 are passed on the
stack for the Windows x64 calling convention.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
@0xdaryl 0xdaryl added comp:vm project:panama Used to track Project Panama related work labels Nov 21, 2022
@0xdaryl
Copy link
Contributor Author

0xdaryl commented Nov 21, 2022

Jenkins test sanity win jdk19

This fix is Windows and JDK19 specific. Cross platform or more JDK level testing is pointless.

@0xdaryl 0xdaryl changed the title WIP: Pass struct correctly in memory for Windows upcall thunk Pass struct correctly in memory for Windows upcall thunk Nov 24, 2022
@0xdaryl
Copy link
Contributor Author

0xdaryl commented Nov 24, 2022

Internal and community testing has passed.

@zl-wang : would you mind reviewing and merging please?

Copy link
Contributor

@zl-wang zl-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zl-wang
Copy link
Contributor

zl-wang commented Nov 28, 2022

have been tested ... merge

@zl-wang zl-wang merged commit 92e9a2c into eclipse-openj9:master Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm project:panama Used to track Project Panama related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Jtreg/FFI] Unexpected crash in upcall on Windows in JDK19
2 participants