[crac] RFR: 8364662: [CRaC] Process restore options in the common arguments parser
Timofei Pushkin
tpushkin at openjdk.org
Mon Aug 4 18:40:28 UTC 2025
Options for restore are now processed during the common VM arguments parsing stage.
Notable improvements compared to the old code:
- Options from `-XX:Flags=<file>` and `-XX:VMOptionsFile=<file>` are now also considered
- Option aliasing is now handled correctly
**Behavioral change**. If `CRaCIgnoreRestoreIfUnavailable` is true it is now not an error to specify non-restore-settable options on restore — these will just be omitted from forwarding to the restored JVM. This makes it possible to specify non-restore-settable to be used after a failed restore.
-------------
Commit messages:
- Integrate restore arg parsing into the main arg parsing code
Changes: https://git.openjdk.org/crac/pull/258/files
Webrev: https://webrevs.openjdk.org/?repo=crac&pr=258&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8364662
Stats: 311 lines in 7 files changed: 194 ins; 100 del; 17 mod
Patch: https://git.openjdk.org/crac/pull/258.diff
Fetch: git fetch https://git.openjdk.org/crac.git pull/258/head:pull/258
PR: https://git.openjdk.org/crac/pull/258
More information about the crac-dev
mailing list