Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java285 private static final int SPINS = 1 << 10; field in Exchanger
377 for (int h = p.hash, spins = SPINS;;) { in arenaExchange()
388 h = SPINS | (int)t.getId(); in arenaExchange()
390 (--spins & ((SPINS >>> 1) - 1)) == 0) in arenaExchange()
394 spins = SPINS; // releaser hasn't set match yet in arenaExchange()
487 int spins = (NCPU > 1) ? SPINS : 1; in slotExchange()
493 h = SPINS | (int)t.getId(); in slotExchange()
494 else if (h < 0 && (--spins & ((SPINS >>> 1) - 1)) == 0) in slotExchange()
498 spins = SPINS; in slotExchange()