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

Comparing jsr166/src/main/java/util/concurrent/ForkJoinPool.java (file contents):
Revision 1.95 by dl, Mon Apr 9 13:11:04 2012 UTC vs.
Revision 1.96 by dl, Tue May 22 23:08:15 2012 UTC

# Line 1537 | Line 1537 | public class ForkJoinPool extends Abstra
1537                      t = (ForkJoinTask<?>)U.getObjectVolatile(a, i);
1538                      if (q.base == b && ec >= 0 && t != null &&
1539                          U.compareAndSwapObject(a, i, t, null)) {
1540 <                        q.base = b + 1;       // specialization of pollAt
1540 >                        if (q.top - (q.base = b + 1) > 1)
1541 >                            signalWork();    // help pushes signal
1542                          return t;
1543                      }
1544                      else if (ec < 0 || j <= m) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines