Home
last modified time | relevance | path

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

/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/
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()
/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;