JDK-8022208 : Intermittent test failures in java/lang/Thread/ThreadStateTest.java
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-08-05
  • Updated: 2013-12-16
  • Resolved: 2013-11-06
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 8 Other
8 b117Fixed port-stage-ppc-aixFixed
Related Reports
Relates :  
Description
Observed same-binary test failure(s) with observed probability of failure:

TESTFAIL:java/lang/Thread/ThreadStateTest.java, 0.0021598272138228943 
Comments
I was able to reproduce once out of 2000 runs on windows. Checking thread state NEW java.lang.RuntimeException: Thread not in expected state yet, but it should at least be RUNNABLE It is expected the thread state is NEW but if the first call to get the thread state doesn't match the expected state, the assumption that the thread is RUNNABLE state which isn't always the case. The following check should be removed. 113 if (state != Thread.State.RUNNABLE) { 114 throw new RuntimeException("Thread not in expected state yet," + 115 " but it should at least be RUNNABLE"); 116 }
31-10-2013

I checked Aurora, not see this test failure in TL nightly.
31-10-2013