[crac] RFR: 8373781: [CRaC] Permit -XX:CPUFeatures on other platforms [v5]

Radim Vansa rvansa at openjdk.org
Mon Jan 5 15:28:06 UTC 2026


> Currently `-XX:CPUFeatures` option is available only on `x86_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:
> * `generic`
> * `native`
> * `ignore`
> 
> The implementation on non-x86_64 will only validate the sanity of the value.
> 
> The related option `-XX:+ShowCPUFeatures` will print an informative message (saying that the option does not make much sense).
> 
> `-XX:+IgnoreCPUFeatures` will be permitted as well, but it will be a no-op on the other architectures.

Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:

  Fail on x86 non-Linux with not recognized CPUFeatures pattern

-------------

Changes:
  - all: https://git.openjdk.org/crac/pull/282/files
  - new: https://git.openjdk.org/crac/pull/282/files/e4849639..0bab0747

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=crac&pr=282&range=04
 - incr: https://webrevs.openjdk.org/?repo=crac&pr=282&range=03-04

  Stats: 26 lines in 2 files changed: 10 ins; 2 del; 14 mod
  Patch: https://git.openjdk.org/crac/pull/282.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/282/head:pull/282

PR: https://git.openjdk.org/crac/pull/282


More information about the crac-dev mailing list