Searched refs:NCPU (Results 1 – 5 of 5) sorted by relevance
275 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Exchanger282 static final int FULL = (NCPU >= (MMASK << 1)) ? MMASK : NCPU >>> 1;469 if (NCPU > 1 && bound == 0 && in slotExchange()486 int spins = (NCPU > 1) ? SPINS : 1; in slotExchange()
1007 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Phaser1020 static final int SPINS_PER_ARRIVAL = (NCPU < 2) ? 1 : 1 << 8;1043 (lastUnarrived = unarrived) < NCPU) in internalAwaitAdvance()
597 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in ConcurrentHashMap2429 if ((stride = (NCPU > 1) ? (n >>> 3) / NCPU : n) < MIN_TRANSFER_STRIDE) in transfer()2625 else if (counterCells != as || n >= NCPU) in fullAddCount()
151 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Striped64259 else if (n >= NCPU || cells != as) in longAccumulate()342 else if (n >= NCPU || cells != as) in doubleAccumulate()
268 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in StampedLock271 private static final int SPINS = (NCPU > 1) ? 1 << 6 : 0;274 private static final int HEAD_SPINS = (NCPU > 1) ? 1 << 10 : 0;277 private static final int MAX_HEAD_SPINS = (NCPU > 1) ? 1 << 16 : 0;