Skip to content

8372933: [CRaC] Restore failed due to incompatible or missing CPU features, try using -XX:CPUFeatures=0xfoo,0xbar on checkpoint#278

Closed
jankratochvil wants to merge 16 commits intoopenjdk:cracfrom
jankratochvil:crac-conjunction
Closed

8372933: [CRaC] Restore failed due to incompatible or missing CPU features, try using -XX:CPUFeatures=0xfoo,0xbar on checkpoint#278
jankratochvil wants to merge 16 commits intoopenjdk:cracfrom
jankratochvil:crac-conjunction

Conversation

@jankratochvil
Copy link
Copy Markdown
Contributor

@jankratochvil jankratochvil commented Dec 2, 2025

Since JDK-8368929 the message:

Restore failed due to incompatible or missing CPU features, try using -XX:CPUFeatures=0xe14e1805fdfbf7,0xfcc on checkpoint.

is wrong as it does not do logical and of both CPUFeatures masks.

Yes, I should have caught it during JDK-8368929 review.

@rvansa will probably want to change the API but this is a PoC how it should work.


Progress

  • Change must not contain extraneous whitespace

Issue

  • JDK-8372933: [CRaC] Restore failed due to incompatible or missing CPU features, try using -XX:CPUFeatures=0xfoo,0xbar on checkpoint (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/crac.git pull/278/head:pull/278
$ git checkout pull/278

Update a local copy of the PR:
$ git checkout pull/278
$ git pull https://git.openjdk.org/crac.git pull/278/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 278

View PR using the GUI difftool:
$ git pr show -t 278

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/crac/pull/278.diff

Using Webrev

Link to Webrev Comment

…tures, try using -XX:CPUFeatures=0xfoo,0xbar on checkpoint
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Dec 2, 2025

👋 Welcome back jkratochvil! A progress list of the required criteria for merging this PR into crac will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Dec 2, 2025

@jankratochvil 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:

8372933: [CRaC] Restore failed due to incompatible or missing CPU features, try using -XX:CPUFeatures=0xfoo,0xbar on checkpoint

Reviewed-by: rvansa

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 197 new commits pushed to the crac branch:

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 (@rvansa) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk Bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 2, 2025
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Dec 2, 2025

Copy link
Copy Markdown
Collaborator

@rvansa rvansa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test update along with a bugfix would be welcome.

Comment thread src/hotspot/share/include/crlib/crlib_image_constraints.h Outdated
Comment thread src/java.base/share/native/libcrexec/image_constraints.cpp Outdated
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Dec 30, 2025

@jankratochvil This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@jankratochvil
Copy link
Copy Markdown
Contributor Author

A test update along with a bugfix would be welcome.

I see in 3260337 only test/jdk/jdk/crac/CPUFeatures/CPUFeatures.sh which has been removed by #280 . There there is a downstream testcase ZULU-82680 which already assumes this change.

Comment thread src/java.base/share/native/libcrexec/image_constraints.hpp Outdated
Comment thread src/java.base/share/native/libcrexec/image_constraints.hpp Outdated
Comment thread src/java.base/share/native/libcrexec/image_constraints.hpp Outdated
Comment thread src/hotspot/share/include/crlib/crlib_image_constraints.h Outdated
Comment thread src/java.base/share/native/libcrexec/image_constraints.cpp
Comment thread src/hotspot/share/runtime/crac_engine.cpp
Comment thread src/hotspot/share/include/crlib/crlib_image_constraints.h Outdated
@jankratochvil
Copy link
Copy Markdown
Contributor Author

macros-aarch64 fail is: jdk/crac/fileDescriptors/ReopenListeningSocketChannelTest.java
macos-x64 fail is:

The macOS-13 based runner images are now retired. For more details, see https://github.com/actions/runner-images/issues/13046.

@TimPushkin
Copy link
Copy Markdown
Collaborator

@jankratochvil I think you need to update your branch from the target branch. We've recently merged the mainline so the CI issues should be solved.

@jankratochvil
Copy link
Copy Markdown
Contributor Author

/integrate

@openjdk openjdk Bot added the sponsor Pull request is ready to be sponsored label Feb 4, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Feb 4, 2026

@jankratochvil
Your change (at version d27c0e7) is now ready to be sponsored by a Committer.

@rvansa
Copy link
Copy Markdown
Collaborator

rvansa commented Feb 4, 2026

/sponsor

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Feb 4, 2026

Going to push as commit 4a940b7.
Since your change was applied there have been 197 commits pushed to the crac branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label Feb 4, 2026
@openjdk openjdk Bot closed this Feb 4, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Feb 4, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Feb 4, 2026

@rvansa @jankratochvil Pushed as commit 4a940b7.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants