[cvs] / jsr166 / src / test / tck / AbstractQueuedSynchronizerTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.61, Tue Nov 28 18:06:55 2017 UTC revision 1.62, Sun Jan 7 23:05:44 2018 UTC
# Line 1262  Line 1262 
1262      }      }
1263    
1264      /**      /**
      * Disabled demo test for (unfixed as of 2017-11)  
1265       * JDK-8191483: AbstractQueuedSynchronizer cancel/cancel race       * JDK-8191483: AbstractQueuedSynchronizer cancel/cancel race
1266       * ant -Djsr166.tckTestClass=AbstractQueuedSynchronizerTest -Djsr166.methodFilter=testCancelCancelRace -Djsr166.runsPerTest=100 tck       * ant -Djsr166.tckTestClass=AbstractQueuedSynchronizerTest -Djsr166.methodFilter=testCancelCancelRace -Djsr166.runsPerTest=100 tck
1267       */       */
1268      public void DISABLED_testCancelCancelRace() throws InterruptedException {      public void testCancelCancelRace() throws InterruptedException {
1269          class Sync extends AbstractQueuedSynchronizer {          class Sync extends AbstractQueuedSynchronizer {
1270              protected boolean tryAcquire(int acquires) {              protected boolean tryAcquire(int acquires) {
1271                  return !hasQueuedPredecessors() && compareAndSetState(0, 1);                  return !hasQueuedPredecessors() && compareAndSetState(0, 1);

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8