JDK-8139704 : JVM hangs in HotSpotJVMCIRuntime. if JFR is enabled
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-10-15
  • Updated: 2015-11-19
  • Resolved: 2015-11-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
compiler/jvmci/events/JvmciNotifyInstallEventTest.java intermittently timeouts in run w/ enabled JFR. java stack trace shows that main thread and compiler thread both are locked and trying to init jdk.vm.ci.hotspot.HotSpotJVMCIRuntime class:


"MainThread" #16 prio=5 os_prio=31 tid=0x00007fcdec0ea000 nid=0x8803 in Object.wait() [0x00000001acd3f000]
   java.lang.Thread.State: RUNNABLE
   JavaThread state: _thread_blocked
Thread: 0x00007fcdec0ea000  [0x8803] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
   JavaThread state: _thread_blocked
	at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.<clinit>(HotSpotJVMCIRuntime.java:51)
	at compiler.jvmci.events.JvmciNotifyInstallEventTest.runTest(JvmciNotifyInstallEventTest.java:83)
	at compiler.jvmci.events.JvmciNotifyInstallEventTest.main(JvmciNotifyInstallEventTest.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:747)

"JVMCI CompilerThread0" #9 daemon prio=9 os_prio=31 tid=0x00007fcdef092000 nid=0x7a03 in Object.wait() [0x00000001ac62b000]
   java.lang.Thread.State: RUNNABLE
   JavaThread state: _thread_blocked
Thread: 0x00007fcdef092000  [0x7a03] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
   JavaThread state: _thread_blocked
	at jdk.vm.ci.runtime.JVMCI.initializeRuntime(Native Method)
	at jdk.vm.ci.runtime.JVMCI.<clinit>(JVMCI.java:58)
Comments
I don't see a timeout after 2015-11-03 so this was fixed by JDK-8139170. Closing as duplicate.
19-11-2015

Have you seen this hang again?
18-11-2015

This should be fixed via JDK-8139170 by: http://lafo.ssw.uni-linz.ac.at/hg/graal-jvmci-9/rev/f4721a3a0774
21-10-2015