ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.227 by jsr166, Sun May 14 03:12:05 2017 UTC vs.
Revision 1.228 by jsr166, Sun May 14 03:14:25 2017 UTC

# Line 1066 | Line 1066 | public class JSR166TestCase extends Test
1066       * Checks that thread eventually enters the expected blocked thread state.
1067       */
1068      void assertThreadBlocks(Thread thread, Thread.State expected) {
1069 <        // always sleep at least 1 ms, avoiding transitional states
1070 <        // with high probability
1069 >        // always sleep at least 1 ms, with high probability avoiding
1070 >        // transitory states
1071          for (long retries = LONG_DELAY_MS * 3 / 4; retries-->0; ) {
1072              try { delay(1); }
1073              catch (InterruptedException fail) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines