Relates :
|
JDK-8064701 added the function WB_AddToBootstrapClassLoaderSearch. This function calls JvmtiEnv::create_a_jvmti() while the thread is in "native" state. JvmtiEnv::create_a_jvmti() requires the thread to be in "vm" state. This results in an assert: # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/opt/jprt/T/P1/005732.iklam/s/hotspot/src/share/vm/runtime/mutex.cpp:1367), pid=15057, tid=140678647793408 # assert((!thread->is_Java_thread() || ((JavaThread *)thread)->thread_state() == _thread_in_vm) || rank() == Mutex::special) failed: wrong thread state for using locks # # JRE version: Java(TM) SE Runtime Environment (9.0) (build 1.9.0-internal-fastdebug-201411190057.iklam.jdk9-b00) # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal-fastdebug-201411190057.iklam.jdk9-b00 compiled mode, sharing linux-amd64 compressed oops) # Core dump written. Default location: /export/local/aurora/sandbox/results/workDir/closed/runtime/AppCDS/JvmtiAddPath/core or core.15057 # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #