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

failure to create a libgraal JavaVM should result in a VM crash

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08

      Description

      Creating a libgraal JavaVM instance can fail for two types of reasons:

      1. The libjvmcicompiler.so file cannot be located or loaded, possibly due to an invalid value for the -XX:JVMCILibPath option.
      2. An internal bug in libjvmcicompiler.so causing JNI_CreateJavaVM to fail.

      Currently, both conditions result in a call to vm_exit_during_initialization which prints an error message and exits the VM process. For example:

      Error occurred during initialization of VM
      JNI_CreateJavaVM failed with return value -1000000007: /b/b/e/.tmp/tmpdpntkajk/graalvm/jre/lib/amd64/libjvmcicompiler.so

      However, to investigate issues of type 2, it's usually useful to have a hs_err crash log. As such, these conditions should exit the VM with a call to fatal() so that a hs_err file is produced.

        Attachments

          Activity

            People

            Assignee:
            dnsimon Douglas Simon
            Reporter:
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: