-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
JDK-8276046: codestrings.validate_vm gtest fails on ppc64, s390 #6133
JDK-8276046: codestrings.validate_vm gtest fails on ppc64, s390 #6133
Conversation
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
9bc100b
to
0f3e2cf
Compare
Webrevs
|
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.
It looks okay to me, but do you want to join the family of #ifdefs
at the beginning of the file?
@tstuefe This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 9 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
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.
Thanks for fixing the issue! Looks ok to me, too. Aleksey's suggestion to have the platform preprocessor stuff at the beginning sounds good. Even though I don't know how this should be done. In addition, wouldn't it be better to use positive instead of negative tests for platforms which do use code strings?
Okay, I followed Alekseys' advice. I rather keep the negatives explicit though. The "DISABLED_" prefix seems to be the standard way to disable gtests, but I really don't care. Thanks, Thomas |
@TheRealMDoerr Martin, are you okay with this? |
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.
I'm ok with it, but I'd prefer less ifndef
s. ZERO, PPC and S390 could be covered by one Iine. Or even better something like #if defined(X86) || defined(ARM)
.
ZERO cannot be following the same logic since it is orthogonal to the CPU architecture. E.g. zero on x86 builds with jdk/src/hotspot/share/utilities/macros.hpp Lines 447 to 455 in 168081e
so you need to exclude ZERO independently from handling CPU architectures. ARM is only 32bit arm: jdk/src/hotspot/share/utilities/macros.hpp Lines 529 to 531 in 168081e
So it would have to be at least So, are we good with:
? |
|
Thank you! /integrate |
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.
Thanks for the update!
Going to push as commit 809488b.
Your commit was automatically rebased without conflicts. |
Trivial patch to switch off the associated gtest on these platforms. PPC64 and s390 compilers don't use code strings.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6133/head:pull/6133
$ git checkout pull/6133
Update a local copy of the PR:
$ git checkout pull/6133
$ git pull https://git.openjdk.java.net/jdk pull/6133/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6133
View PR using the GUI difftool:
$ git pr show -t 6133
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6133.diff