If `-XX:CRaCEngineOptions=help` and `-XX:CRaCRestoreFrom` are passed together JVM will attempt to restore and fail:
```
$ java -XX:CRaCRestoreFrom=cr -XX:CRaCEngineOptions=help
crexec: exec_location must be set before restore
OpenJDK 64-Bit Server VM warning: cannot restore
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
```
This happens because when `CRaCRestoreFrom` is used a different code piece is used to parse VM arguments and the help implementation does not consider this.
```
$ java -XX:CRaCRestoreFrom=cr -XX:CRaCEngineOptions=help
crexec: exec_location must be set before restore
OpenJDK 64-Bit Server VM warning: cannot restore
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
```
This happens because when `CRaCRestoreFrom` is used a different code piece is used to parse VM arguments and the help implementation does not consider this.
- caused by
-
JDK-8350845 [CRaC] Support C/R engines in form of a library
-
- Resolved
-
- links to
-
Commit(crac) openjdk/crac/9ec2078d
-
Review(crac) openjdk/crac/211