--- jsr166/src/jsr166y/ForkJoinPool.java 2015/07/27 03:12:26 1.188 +++ jsr166/src/jsr166y/ForkJoinPool.java 2015/09/12 19:16:45 1.189 @@ -1521,8 +1521,12 @@ public class ForkJoinPool extends Abstra (m = ws.length - 1) < 0) { // initialize workQueues int p = config & SMASK; // find power of two table size int n = (p > 1) ? p - 1 : 1; // ensure at least 2 slots - n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; - n |= n >>> 8; n |= n >>> 16; n = (n + 1) << 1; + n |= n >>> 1; + n |= n >>> 2; + n |= n >>> 4; + n |= n >>> 8; + n |= n >>> 16; + n = (n + 1) << 1; WorkQueue[] nws = ((ws = workQueues) == null || ws.length == 0 ? new WorkQueue[n] : null); if (((ps = plock) & PL_LOCK) != 0 ||