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
Increment counter correctly in FFI Upcall on Z #16326
Conversation
Tagging @r30shah for review. @ChengJin01 FYI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. We should update comment to reflect that, for the complex return type GPR2 contains address of the return value buffer.
@dchopra001 I would assume we you have verified the changes with FFI tests, right? |
Yes, all the tests in @ChengJin01 is there any PR testing we can run to verify the change? Or alternatively did you want to also verify if this fixes the issue on Z? |
Please make sure the following upcall specific Jtreg test suites at https://github.com/ibmruntimes/openj9-openjdk-jdk19/tree/openj9/test/jdk/java/foreign pass without any issue given the problem here was captured by Jtreg test suites.
|
I ran each of the listed tests twice and saw no failures. So I think we should be good to merge this. |
@dchopra001 : Do you want to update the comment as per @r30shah's suggestion? |
When getArgPointer is invoked while an upcall is performed the gprIndex must be incremented if hidden parameters have to be accounted for. This commit implements the suggested change. Fixes: eclipse-openj9#16214 Signed-off-by: Dhruv Chopra <Dhruv.C.Chopra@ibm.com>
Sorry forgot to address that. The comments should be there now in de300b8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, good to merge.
jenkins test sanity zlinux jdk19 |
When getArgPointer is invoked while an upcall is performed the gprIndex must be incremented if hidden parameters have to be accounted for. This commit implements the suggested change.
Fixes: #16214
Signed-off-by: Dhruv Chopra Dhruv.C.Chopra@ibm.com