JDK-6811570 : Thread.sleep returns early
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: sparc
  • Submitted: 2009-03-01
  • Updated: 2019-03-13
  • Resolved: 2017-04-25
Related Reports
Duplicate :  
Duplicate :  
Description
This issue was seen with awt tests on a couple of Solaris systems - one is a solaris-sparc system and another is solaris-x86. On solaris-sparc, it wasn't consistently reproducible. Attached is a testcase used to reproduce the issue.

The testcase consists of two threads - one which waits for a certain duration before timing out and the other thread does some ui operations. It is seen that the first thread times out before the specified duration is elapsed - without any exceptions.