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

[CRaC] Could not find criuengine on Windows and Mac

XMLWordPrintable

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

      JVM fails to start on Windows and Mac if CRaC is enabled complaining it cannot find `criuengine`:
      ```
      % java -XX:CRaCCheckpointTo=cr -version
      OpenJDK 64-Bit Server VM warning: Could not find /Users/timpushkin/Projects/crac/build/macosx-aarch64-server-fastdebug/images/jdk/lib/criuengine: No such file or directory
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      ```

      This happens because `criuengine` actually does not exists for Windows and Mac. A workaround is to set `-XX:CREngine` to `simengine.exe` on Windows or `simengine` on Mac.

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

              Created:
              Updated:
              Resolved: