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

Comparing jsr166/src/jsr166e/ForkJoinPool.java (file contents):
Revision 1.29 by jsr166, Fri Dec 14 16:33:42 2012 UTC vs.
Revision 1.30 by dl, Sat Dec 15 20:21:25 2012 UTC

# Line 1851 | Line 1851 | public class ForkJoinPool extends Abstra
1851              if ((u = (int)(ctl >>> 32)) < 0 && (u >> UAC_SHIFT) < 0 &&
1852                  (ws = workQueues) != null && (m = ws.length - 1) >= 0 &&
1853                  (q = ws[h & m]) != null) {
1854 <                for (int n = 2;;) { // limit to at most 2 signals
1854 >                for (int n = (m >>> 2) | 1;;) { // limit signals
1855                      int idleCount = (caller.eventCount < 0) ? 0 : -1;
1856                      if (((s = idleCount - q.base + q.top) <= n &&
1857                           (n = s) <= 0) ||

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines