-
Notifications
You must be signed in to change notification settings - Fork 42
8373781: [CRaC] Permit -XX:CPUFeatures on other platforms #282
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 rvansa! A progress list of the required criteria for merging this PR into |
|
@rvansa 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 3 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 |
Webrevs
|
TimPushkin
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.
Implementation LGTM, but we have non-x86 machines in CI so it makes sense to add a test for this
|
I've replaced the shell-based CPUFeatures test, and added test cases. |
|
@TimPushkin The tests now pass on all platforms but Mac + x64, where we need to backport upstream changes after GH obsoleted a base image. Please re-review. |
TimPushkin
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.
Just two minor things, since you are planning a follow-up maybe it'll be easier/faster to fix them there
| #endif // LINUX | ||
| #endif |
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'd prefer to have either #endif // LINUX or #endif // !LINUX — there is a lot of ifdef-s around so it's a bit harder to read without such comments
| @@ -0,0 +1,129 @@ | |||
| /* | |||
| * Copyright (c) 2023,2025, Azul Systems, Inc. All rights reserved. | |||
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.
| * Copyright (c) 2023,2025, Azul Systems, Inc. All rights reserved. | |
| * Copyright (c) 2023, 2025, Azul Systems, Inc. All rights reserved. |
|
/integrate |
|
Going to push as commit abf0868.
Your commit was automatically rebased without conflicts. |
Currently
-XX:CPUFeaturesoption is available only onx86_64. This complicates creating multiarch container images that are meant to be universally runnable (with-XX:CPUFeatures=generic).I propose to make this option available on all architectures, with the non-arch specific values:
genericnativeignoreThe implementation on non-x86_64 will only validate the sanity of the value.
The related option
-XX:+ShowCPUFeatureswill print an informative message (saying that the option does not make much sense).-XX:+IgnoreCPUFeatureswill be permitted as well, but it will be a no-op on the other architectures.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/crac.git pull/282/head:pull/282$ git checkout pull/282Update a local copy of the PR:
$ git checkout pull/282$ git pull https://git.openjdk.org/crac.git pull/282/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 282View PR using the GUI difftool:
$ git pr show -t 282Using diff file
Download this PR as a diff file:
https://git.openjdk.org/crac/pull/282.diff
Using Webrev
Link to Webrev Comment