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

Radim Vansa rvansa at openjdk.org
Tue Jan 6 14:20:44 UTC 2026


On Wed, 17 Dec 2025 10:26:55 GMT, Radim Vansa <rvansa at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: abf08680
Author:    Radim Vansa <rvansa at openjdk.org>
URL:       https://git.openjdk.org/crac/commit/abf086802d18239cdcf0091b8baaf2b25b510537
Stats:     274 lines in 22 files changed: 193 ins; 64 del; 17 mod

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

Reviewed-by: tpushkin

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

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


More information about the crac-dev mailing list