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.45 by jsr166, Fri Dec 3 22:00:21 2010 UTC vs.
Revision 1.46 by jsr166, Fri Dec 3 22:07:08 2010 UTC

# Line 741 | Line 741 | public class Phaser {
741          final Phaser root = this.root;
742          long s;
743          while ((s = root.state) >= 0) {
744 <            long next = (s & ~(long)(MAX_PARTIES)) | TERMINATION_BIT;
744 >            long next = (s & ~((long)UNARRIVED_MASK)) | TERMINATION_BIT;
745              if (UNSAFE.compareAndSwapLong(root, stateOffset, s, next)) {
746                  // signal all threads
747                  releaseWaiters(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines