-
Bug
-
Resolution: Fixed
-
P5
-
5.0
-
b62
-
generic
-
generic
Following test fails intermittently.
java/lang/management/ThreadMXBean/ThreadStateTest.java
Intermittently it returns TIMED_WAIT instead of RUNNING because
of race condition in test case. When the testing thread is
querying for target thread state and that thread could be
in wait or running. It is hard to predict when the thread
would be in running. So we need to come up with better
logic to test this thread state.
Some times it also fails with TIMED_WAITING when it is expecting WAITING
thread state.
java/lang/management/ThreadMXBean/ThreadStateTest.java
Intermittently it returns TIMED_WAIT instead of RUNNING because
of race condition in test case. When the testing thread is
querying for target thread state and that thread could be
in wait or running. It is hard to predict when the thread
would be in running. So we need to come up with better
logic to test this thread state.
Some times it also fails with TIMED_WAITING when it is expecting WAITING
thread state.
- relates to
-
JDK-7021010 (thread) TEST_BUG java/lang/Thread/ThreadStateTest.java fails intermittently
-
- Closed
-