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.31 by jsr166, Mon Feb 11 07:13:22 2013 UTC vs.
Revision 1.32 by dl, Mon Feb 25 17:59:40 2013 UTC

# Line 493 | Line 493 | public abstract class CountedCompleter<T
493       * @param delta the value to add
494       */
495      public final void addToPendingCount(int delta) {
496 <        int c; // note: can replace with intrinsic in jdk8
497 <        do {} while (!U.compareAndSwapInt(this, PENDING, c = pending, c+delta));
496 >        U.getAndAddInt(this, PENDING, delta);
497      }
498  
499      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines