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

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

# Line 1333 | Line 1333 | public class AbstractQueuedLongSynchroni
1333              if (s.getFirstQueuedThread() == thread
1334                  && s.hasQueuedPredecessors()
1335                  && s.hasQueuedThreads()
1336 <                && s.getQueueLength() == 1)
1336 >                && s.getQueueLength() == 1
1337 >                && s.hasContended())
1338                  break;
1339              if (startTime == 0L)
1340                  startTime = System.nanoTime();
# Line 1360 | Line 1361 | public class AbstractQueuedLongSynchroni
1361          assertFalse(s.hasQueuedThreads());
1362          assertEquals(0, s.getQueueLength());
1363          assertTrue(s.getQueuedThreads().isEmpty());
1364 +        assertTrue(s.hasContended());
1365      }
1366  
1367   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines