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

Comparing jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java (file contents):
Revision 1.71 by jsr166, Thu Aug 15 16:01:30 2019 UTC vs.
Revision 1.72 by jsr166, Thu Aug 15 16:06:13 2019 UTC

# Line 1384 | Line 1384 | public class AbstractQueuedSynchronizerT
1384              if (s.getFirstQueuedThread() == thread
1385                  && s.hasQueuedPredecessors()
1386                  && s.hasQueuedThreads()
1387 <                && s.getQueueLength() == 1)
1387 >                && s.getQueueLength() == 1
1388 >                && s.hasContended())
1389                  break;
1390              if (startTime == 0L)
1391                  startTime = System.nanoTime();
# Line 1411 | Line 1412 | public class AbstractQueuedSynchronizerT
1412          assertFalse(s.hasQueuedThreads());
1413          assertEquals(0, s.getQueueLength());
1414          assertTrue(s.getQueuedThreads().isEmpty());
1415 +        assertTrue(s.hasContended());
1416      }
1417  
1418   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines