hs-comp: VM is not exiting
Vladimir Kozlov
vladimir.kozlov at oracle.com
Thu Jun 11 16:49:39 UTC 2015
Interesting. I tested jdk7,8,9 - all behave the same (ran with -Xint).
It hangs on some kind of synchronization:
----------------- lwp# 42 / thread# 42 --------------------
fffffd7fff0abbca lwp_cond_wait (681248, 681230, 0, 0)
fffffd7c166d288f __1cCosNPlatformEventEpark6M_v_ () + 7b
fffffd7c166a4080 __1cNObjectMonitorEwait6MlbpnGThread__v_ () + 36c
fffffd7c1686a540 __1cSObjectSynchronizerEwait6FnGHandle_lpnGThread__v_
() + f8
fffffd7c1633f098 JVM_MonitorWait () + 214
fffffd7fe1214ceb * java/lang/Object.wait(J)V+0
fffffd7fe12072e0 * java/lang/Object.wait()V+2 (line 1004)
fffffd7fe12072e0 * java/util/TimerThread.mainLoop()V+28 (line 1049)
fffffd7fe12072e0 * java/util/TimerThread.run()V+1 (line 1010)
fffffd7fe120050b * java/util/TimerThread.run()V+19912 (line 1029)
Vladimir
On 6/11/15 9:17 AM, Andrew Haley wrote:
> I'm building a clean hs-comp, and I find that the VM does not exit
> when a Timer is scheduled. The VM seems to be deadlocked.
>
> import java.util.Timer;
> import java.util.TimerTask;
>
> public class TimerTest {
>
> static volatile boolean finished = true;
> static Timer timer = new Timer();
>
> public static void main(String[] args) {
> TimerTask t = new TimerTask() {
> public void run() {
> finished = true;
> }
> };
> timer.schedule(t, 1000);
> throw new RuntimeException();
> }
> }
>
> Is this a known bug?
>
> Thanks,
> Andrew.
>
More information about the hotspot-dev
mailing list