[crac] RFR: 8365241: [CRaC] Ignore new arguments when CRaCIgnoreRestoreIfUnavailable is true

Timofei Pushkin tpushkin at openjdk.org
Mon Aug 11 11:21:06 UTC 2025


Arguments are not passed to the restored process when `-XX:+CRaCIgnoreRestoreIfUnavailable` is set on restore. The check is performed on the side of the restoring VM since in the restored VM `CRaCIgnoreRestoreIfUnavailable` could have been set before the current restore.

Documentation for the new arguments feature and `CRaCIgnoreRestoreIfUnavailable` is also added, explaining this behavior.

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

Commit messages:
 - Ignore new args with CRaCIgnoreRestoreIfUnavailable

Changes: https://git.openjdk.org/crac/pull/261/files
  Webrev: https://webrevs.openjdk.org/?repo=crac&pr=261&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365241
  Stats: 30 lines in 3 files changed: 26 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/crac/pull/261.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/261/head:pull/261

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


More information about the crac-dev mailing list