Searched refs:NCPU (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DExchanger.java248 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in class:Exchanger
255 static final int FULL = (NCPU >= (MMASK << 1)) ? MMASK : NCPU >>> 1;
260 * due to randomization. Note: Spinning is disabled when NCPU==1.
444 if (NCPU > 1 && bound == 0 &&
461 int spins = (NCPU > 1) ? SPINS : 1;
H A DPhaser.java983 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in class:Phaser
996 static final int SPINS_PER_ARRIVAL = (NCPU < 2) ? 1 : 1 << 8;
1019 (lastUnarrived = unarrived) < NCPU)
H A DConcurrentHashMap.java405 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in class:ConcurrentHashMap
1665 if ((stride = (NCPU > 1) ? (n >>> 3) / NCPU : n) < MIN_TRANSFER_STRIDE)
3116 else if (counterCells != as || n >= NCPU)

Completed in 122 milliseconds