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.61 by jsr166, Tue Nov 28 18:06:55 2017 UTC vs.
Revision 1.62 by dl, Sun Jan 7 23:05:44 2018 UTC

# Line 1262 | Line 1262 | public class AbstractQueuedSynchronizerT
1262      }
1263  
1264      /**
1265     * Disabled demo test for (unfixed as of 2017-11)
1265       * JDK-8191483: AbstractQueuedSynchronizer cancel/cancel race
1266       * ant -Djsr166.tckTestClass=AbstractQueuedSynchronizerTest -Djsr166.methodFilter=testCancelCancelRace -Djsr166.runsPerTest=100 tck
1267       */
1268 <    public void DISABLED_testCancelCancelRace() throws InterruptedException {
1268 >    public void testCancelCancelRace() throws InterruptedException {
1269          class Sync extends AbstractQueuedSynchronizer {
1270              protected boolean tryAcquire(int acquires) {
1271                  return !hasQueuedPredecessors() && compareAndSetState(0, 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines