Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/
DExchanger.java245 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Exchanger
252 static final int FULL = (NCPU >= (MMASK << 1)) ? MMASK : NCPU >>> 1;
441 if (NCPU > 1 && bound == 0 && in slotExchange()
458 int spins = (NCPU > 1) ? SPINS : 1; in slotExchange()
DPhaser.java981 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Phaser
994 static final int SPINS_PER_ARRIVAL = (NCPU < 2) ? 1 : 1 << 8;
1017 (lastUnarrived = unarrived) < NCPU) in internalAwaitAdvance()
DConcurrentHashMap.java437 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in ConcurrentHashMap
1729 if ((stride = (NCPU > 1) ? (n >>> 3) / NCPU : n) < MIN_TRANSFER_STRIDE) in transfer()
3248 else if (counterCells != as || n >= NCPU) in fullAddCount()