ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CountedCompleter.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CountedCompleter.java (file contents):
Revision 1.61 by jsr166, Tue Aug 30 18:09:45 2016 UTC vs.
Revision 1.62 by jsr166, Sat Sep 10 04:06:51 2016 UTC

# Line 534 | Line 534 | public abstract class CountedCompleter<T
534      public final int decrementPendingCountUnlessZero() {
535          int c;
536          do {} while ((c = pending) != 0 &&
537 <                     !PENDING.weakCompareAndSetVolatile(this, c, c - 1));
537 >                     !PENDING.weakCompareAndSet(this, c, c - 1));
538          return c;
539      }
540  
# Line 567 | Line 567 | public abstract class CountedCompleter<T
567                      return;
568                  }
569              }
570 <            else if (PENDING.weakCompareAndSetVolatile(a, c, c - 1))
570 >            else if (PENDING.weakCompareAndSet(a, c, c - 1))
571                  return;
572          }
573      }
# Line 590 | Line 590 | public abstract class CountedCompleter<T
590                      return;
591                  }
592              }
593 <            else if (PENDING.weakCompareAndSetVolatile(a, c, c - 1))
593 >            else if (PENDING.weakCompareAndSet(a, c, c - 1))
594                  return;
595          }
596      }
# Line 635 | Line 635 | public abstract class CountedCompleter<T
635          for (int c;;) {
636              if ((c = pending) == 0)
637                  return this;
638 <            else if (PENDING.weakCompareAndSetVolatile(this, c, c - 1))
638 >            else if (PENDING.weakCompareAndSet(this, c, c - 1))
639                  return null;
640          }
641      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines