-
Enhancement
-
Resolution: Fixed
-
P4
-
16
-
b08
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.
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.