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

Comparing jsr166/src/jdk7/java/util/concurrent/ForkJoinPool.java (file contents):
Revision 1.26 by jsr166, Fri Feb 27 07:03:36 2015 UTC vs.
Revision 1.27 by jsr166, Sat Sep 12 19:16:45 2015 UTC

# Line 1526 | Line 1526 | public class ForkJoinPool extends Abstra
1526                       (m = ws.length - 1) < 0) { // initialize workQueues
1527                  int p = parallelism;            // find power of two table size
1528                  int n = (p > 1) ? p - 1 : 1;    // ensure at least 2 slots
1529 <                n |= n >>> 1; n |= n >>> 2;  n |= n >>> 4;
1530 <                n |= n >>> 8; n |= n >>> 16; n = (n + 1) << 1;
1529 >                n |= n >>> 1;
1530 >                n |= n >>> 2;
1531 >                n |= n >>> 4;
1532 >                n |= n >>> 8;
1533 >                n |= n >>> 16;
1534 >                n = (n + 1) << 1;
1535                  WorkQueue[] nws = ((ws = workQueues) == null || ws.length == 0 ?
1536                                     new WorkQueue[n] : null);
1537                  if (((ps = plock) & PL_LOCK) != 0 ||

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines