Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java271 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Exchanger
278 static final int FULL = (NCPU >= (MMASK << 1)) ? MMASK : NCPU >>> 1;
470 if (NCPU > 1 && bound == 0 && in slotExchange()
487 int spins = (NCPU > 1) ? SPINS : 1; in slotExchange()
DPhaser.java1006 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Phaser
1019 static final int SPINS_PER_ARRIVAL = (NCPU < 2) ? 1 : 1 << 8;
1042 (lastUnarrived = unarrived) < NCPU) in internalAwaitAdvance()
DConcurrentHashMap.java597 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in ConcurrentHashMap
2431 if ((stride = (NCPU > 1) ? (n >>> 3) / NCPU : n) < MIN_TRANSFER_STRIDE) in transfer()
2627 else if (counterCells != cs || n >= NCPU) in fullAddCount()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java154 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Striped64
265 else if (n >= NCPU || cells != cs) in longAccumulate()
346 else if (n >= NCPU || cells != cs) in doubleAccumulate()