Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java275 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Exchanger
282 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()
DPhaser.java1007 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Phaser
1020 static final int SPINS_PER_ARRIVAL = (NCPU < 2) ? 1 : 1 << 8;
1043 (lastUnarrived = unarrived) < NCPU) in internalAwaitAdvance()
DConcurrentHashMap.java597 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in ConcurrentHashMap
2429 if ((stride = (NCPU > 1) ? (n >>> 3) / NCPU : n) < MIN_TRANSFER_STRIDE) in transfer()
2625 else if (counterCells != as || n >= NCPU) in fullAddCount()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java151 static final int NCPU = Runtime.getRuntime().availableProcessors(); field in Striped64
259 else if (n >= NCPU || cells != as) in longAccumulate()
342 else if (n >= NCPU || cells != as) in doubleAccumulate()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java268 private static final int NCPU = Runtime.getRuntime().availableProcessors(); field in StampedLock
271 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;