Searched refs:NCPU (Results 1 – 3 of 3) sorted by relevance
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()
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()
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;