-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8364296: Set IntelJccErratumMitigation flag ergonomically #26560
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
Conversation
|
👋 Welcome back ogillespie! A progress list of the required criteria for merging this PR into |
|
@olivergillespie 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 31 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@shipilev, @jatin-bhateja) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
To avoid this situation, create a new branch for your changes and reset the Then proceed to create a new pull request with |
|
@olivergillespie The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
shipilev
left a comment
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.
This looks fine to me as the solution to the UX problem.
Thinking out loud:
I don't know VM_Version::_has_intel_jcc_erratum field bears any reasonable weight at this point. That said, I think the guidance I heard from @vnkozlov once is that checking the flag directly instead of calling into VM_Version is frowned upon. This would be somewhat important in Leyden.
But maybe we should go and redefine VM_Version::has_intel_jcc_erratum to return the IntelJccErratumMitigation value as well. That would require JVMCI folks to poll the JVM flag directly instead of going via VMStructs. Also somewhat busy-work-ish.
So I am approving this as an MVP that solves the UX problem and does not prompt any additional work.
/reviewers 2
|
Hi @olivergillespie , This change looks good to me, what about other flags in vm_version_x86.cpp JVM flag which is enabled through feature detection should have ERGONOMIC origin. |
Thanks, good point, there are many more cases there. Looks like this is the only one where the actual value is out of sync with the flag, though, which is the most egregious part. The others all use FLAG_SET_DEFAULT or equivalent, so it's just the source of the updated value which is wrong. It actually seems like that's a pattern across the codebase - this one literally points out that it's an ergonomic setting while using FLAG_SET_DEFAULT. |
Yeah, we have not been consistent about this. I believe it would be busy work to change Plus, we have this macro that does the similar thing: |
|
/integrate |
|
@olivergillespie |
|
/sponsor |
|
Going to push as commit 6c58047.
Your commit was automatically rebased without conflicts. |
|
@shipilev @olivergillespie Pushed as commit 6c58047. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
We should update the flag if we are using a computed value. Nobody else reads IntelJccErratumMitigation specifically, but we want it to be correctly shown in PrintFlagsFinal and anywhere else these flags are inspected.
Even worse when it's actually false, but shows as true:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26560/head:pull/26560$ git checkout pull/26560Update a local copy of the PR:
$ git checkout pull/26560$ git pull https://git.openjdk.org/jdk.git pull/26560/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26560View PR using the GUI difftool:
$ git pr show -t 26560Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26560.diff
Using Webrev
Link to Webrev Comment