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

Comparing jsr166/src/main/java/util/concurrent/Phaser.java (file contents):
Revision 1.89 by jsr166, Fri Jul 8 20:02:54 2016 UTC vs.
Revision 1.90 by jsr166, Sat Sep 10 04:06:51 2016 UTC

# Line 427 | Line 427 | public class Phaser {
427                          // finish registration whenever parent registration
428                          // succeeded, even when racing with termination,
429                          // since these are part of the same "transaction".
430 <                        while (!STATE.weakCompareAndSetVolatile
430 >                        while (!STATE.weakCompareAndSet
431                                 (this, s,
432                                  ((long)phase << PHASE_SHIFT) | adjust)) {
433                              s = state;
# Line 459 | Line 459 | public class Phaser {
459              // CAS to root phase with current parties, tripping unarrived
460              while ((phase = (int)(root.state >>> PHASE_SHIFT)) !=
461                     (int)(s >>> PHASE_SHIFT) &&
462 <                   !STATE.weakCompareAndSetVolatile
462 >                   !STATE.weakCompareAndSet
463                     (this, s,
464                      s = (((long)phase << PHASE_SHIFT) |
465                           ((phase < 0) ? (s & COUNTS_MASK) :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines