Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8351701

[CRaC] CRaCEngineOptions=help cannot be used with CRaCRestoreFrom

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-crac
    • repo-crac
    • hotspot
    • None
    • generic
    • generic

      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.

            tpushkin Timofei Pushkin
            tpushkin Timofei Pushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: