-
Bug
-
Resolution: Duplicate
-
P4
-
9
TESTFAIL:java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java
java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java fails intermittently:
----------System.out:(21/1492)----------
143: state change: runnable [phase = 0 parties = 2 arrived = 1]
142: wait until the thread transitions to runnable [phase = 0 parties = 2 arrived = 1]
142: awaiting party arrive runnable [phase = 1 parties = 2 arrived = 0]
142: arrived at runnable [phase = 1 parties = 2 arrived = 0]
142: wait until the thread transitions to blocked [phase = 1 parties = 2 arrived = 0]
142: awaiting party arrive blocked [phase = 1 parties = 2 arrived = 1]
143: StateChanger is going to block (interations 1)
143: state change: blocked [phase = 2 parties = 2 arrived = 0]
142: arrived at blocked [phase = 2 parties = 2 arrived = 0]
142: wait until the thread transitions to waiting [phase = 2 parties = 2 arrived = 0]
143: StateChanger acquired the lock (interations 1)
142: awaiting party arrive waiting [phase = 2 parties = 2 arrived = 1]
143: StateChanger is going to waiting (interations 1 interrupted 0)
143: state change: waiting [phase = 3 parties = 2 arrived = 0]
142: arrived at waiting [phase = 3 parties = 2 arrived = 0]
142: wait until the thread transitions to timed waiting [phase = 3 parties = 2 arrived = 0]
142: awaiting party arrive timed waiting [phase = 3 parties = 2 arrived = 1]
143: StateChanger wakes up from waiting (interations 1 interrupted 0)
143: StateChanger is going to timed waiting (interations 1 interrupted 0)
143: state change: timed waiting [phase = 4 parties = 2 arrived = 0]
142: arrived at timed waiting [phase = 4 parties = 2 arrived = 0]
----------System.err:(13/735)----------
java.lang.RuntimeException: Lock owner is expected to be null but got StateChanger
at ThreadMXBeanStateTest.checkLockInfo(ThreadMXBeanStateTest.java:197)
at ThreadMXBeanStateTest.main(ThreadMXBeanStateTest.java:92)
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:484)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:754)
at java.lang.Thread.run(Thread.java:744)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java fails intermittently:
----------System.out:(21/1492)----------
143: state change: runnable [phase = 0 parties = 2 arrived = 1]
142: wait until the thread transitions to runnable [phase = 0 parties = 2 arrived = 1]
142: awaiting party arrive runnable [phase = 1 parties = 2 arrived = 0]
142: arrived at runnable [phase = 1 parties = 2 arrived = 0]
142: wait until the thread transitions to blocked [phase = 1 parties = 2 arrived = 0]
142: awaiting party arrive blocked [phase = 1 parties = 2 arrived = 1]
143: StateChanger is going to block (interations 1)
143: state change: blocked [phase = 2 parties = 2 arrived = 0]
142: arrived at blocked [phase = 2 parties = 2 arrived = 0]
142: wait until the thread transitions to waiting [phase = 2 parties = 2 arrived = 0]
143: StateChanger acquired the lock (interations 1)
142: awaiting party arrive waiting [phase = 2 parties = 2 arrived = 1]
143: StateChanger is going to waiting (interations 1 interrupted 0)
143: state change: waiting [phase = 3 parties = 2 arrived = 0]
142: arrived at waiting [phase = 3 parties = 2 arrived = 0]
142: wait until the thread transitions to timed waiting [phase = 3 parties = 2 arrived = 0]
142: awaiting party arrive timed waiting [phase = 3 parties = 2 arrived = 1]
143: StateChanger wakes up from waiting (interations 1 interrupted 0)
143: StateChanger is going to timed waiting (interations 1 interrupted 0)
143: state change: timed waiting [phase = 4 parties = 2 arrived = 0]
142: arrived at timed waiting [phase = 4 parties = 2 arrived = 0]
----------System.err:(13/735)----------
java.lang.RuntimeException: Lock owner is expected to be null but got StateChanger
at ThreadMXBeanStateTest.checkLockInfo(ThreadMXBeanStateTest.java:197)
at ThreadMXBeanStateTest.main(ThreadMXBeanStateTest.java:92)
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:484)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:754)
at java.lang.Thread.run(Thread.java:744)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
- duplicates
-
JDK-8058506 ThreadMXBeanStateTest throws exception
-
- Resolved
-
- relates to
-
JDK-8058506 ThreadMXBeanStateTest throws exception
-
- Resolved
-