-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Jtreg]Fix the issue with addVarg/nextVarg of VaList on Power #514
[Jtreg]Fix the issue with addVarg/nextVarg of VaList on Power #514
Conversation
The code is the same as ibmruntimes/openj9-openjdk-jdk19#42. |
0238811
to
3c78478
Compare
The change is to resolve the Jtreg test related issue with addVarg/nextVarg of VaList on Power to ensure the struct value is correctly read from va_list and added to va_list when the struct argument size is inconsistent with its layout size. Signed-off-by: Cheng Jin <jincheng@ca.ibm.com>
The change is to resolve the Jtreg test related issue with addVarg/nextVarg of VaList on Power to ensure the struct value is correctly read from va_list and added to va_list when the struct argument size is inconsistent with its layout size. Signed-off-by: Cheng Jin <jincheng@ca.ibm.com>
3c78478
to
7771470
Compare
jenkins test sanity plinux jdknext |
return (structSegment.byteSize() > structArgLayout.byteSize()) ? | ||
structArgLayout.byteSize() : structSegment.byteSize(); |
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.
Am I missing something or could this just be this?
return Math.min(structSegment.byteSize(), structArgLayout.byteSize());
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.
We expect to get the smaller size suitable for the struct to allocate, in such case Math.min()
should work. I will create a PR for this minor adjustment.
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.
PRs are created at #521 and ibmruntimes/openj9-openjdk-jdk19#49.
The change is to resolve the Jtreg test related issue with addVarg/nextVarg of VaList on Power to ensure the struct value is correctly read from va_list and added to va_list when the struct argument size is inconsistent with its layout size.
Signed-off-by: Cheng Jin jincheng@ca.ibm.com