# | 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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |