[crac] Integrated: 8373784: [CRaC] VM Option to require perfect CPU fit
Radim Vansa
rvansa at openjdk.org
Fri Jan 9 08:21:08 UTC 2026
On Tue, 6 Jan 2026 14:41:20 GMT, Radim Vansa <rvansa at openjdk.org> wrote:
> Right now CRaC will refuse to restore from the image if it is not compatible with current CPU as it assumes extra features. This check can be only relaxed with -XX:+UnlockExperimentalVMOptions -XX:+IgnoreCPUFeatures.
>
> In scenarios with -XX:CRaCIgnoreRestoreIfUnavailable it might be favorable to skip the restore and proceed with running the application from scratch with all CPU features if the image has these restricted. Therefore I propose to create a new option -XX:CheckCPUFeatures with these values:
> * compatible - this is the current behaviour (default)
> * exact - require CPU features from the image to match perfectly
> * skip - the same behaviour as `-XX:+IgnoreCPUFeatures`.
>
> The current `-XX:+IgnoreCPUFeatures` option will be deprecated.
This pull request has now been integrated.
Changeset: af6c8445
Author: Radim Vansa <rvansa at openjdk.org>
URL: https://git.openjdk.org/crac/commit/af6c8445eff80134cc5c6f814f5c550b3b0f9333
Stats: 155 lines in 9 files changed: 141 ins; 0 del; 14 mod
8373784: [CRaC] VM Option to require perfect CPU fit
Reviewed-by: jkratochvil, tpushkin
-------------
PR: https://git.openjdk.org/crac/pull/285
More information about the crac-dev
mailing list