Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java377 for (int h = p.hash, spins = SPINS;;) { in arenaExchange()
385 else if (spins > 0) { in arenaExchange()
390 (--spins & ((SPINS >>> 1) - 1)) == 0) in arenaExchange()
394 spins = SPINS; // releaser hasn't set match yet in arenaExchange()
485 int spins = (NCPU > 1) ? SPINS : 1; in slotExchange() local
488 if (spins > 0) { in slotExchange()
492 else if (h < 0 && (--spins & ((SPINS >>> 1) - 1)) == 0) in slotExchange()
496 spins = SPINS; in slotExchange()
DSynchronousQueue.java438 int spins = shouldSpin(s) in awaitFulfill() local
454 if (spins > 0) in awaitFulfill()
455 spins = shouldSpin(s) ? (spins - 1) : 0; in awaitFulfill()
739 int spins = (head.next == s) in awaitFulfill() local
755 if (spins > 0) in awaitFulfill()
756 --spins; in awaitFulfill()
DPhaser.java1036 int spins = SPINS_PER_ARRIVAL; in internalAwaitAdvance() local
1044 spins += SPINS_PER_ARRIVAL; in internalAwaitAdvance()
1046 if (interrupted || --spins < 0) { // need node to record intr in internalAwaitAdvance()
DLinkedTransferQueue.java696 int spins = -1; // initialized after first item and cancel checks in awaitMatch() local
712 else if (spins < 0) { // establish spins at/near front in awaitMatch()
713 if ((spins = spinsFor(pred, s.isData)) > 0) in awaitMatch()
716 else if (spins > 0) { // spin in awaitMatch()
717 --spins; in awaitMatch()
DCompletableFuture.java1737 int spins = SPINS; in waitingGet() local
1740 if (spins > 0) { in waitingGet()
1742 --spins; in waitingGet()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java1035 for (int spins = -1;;) { // spin while enqueuing in acquireWrite()
1041 else if (spins < 0) in acquireWrite()
1042 spins = (m == WBIT && wtail == whead) ? SPINS : 0; in acquireWrite()
1043 else if (spins > 0) { in acquireWrite()
1045 --spins; in acquireWrite()
1063 for (int spins = -1;;) { in acquireWrite()
1066 if (spins < 0) in acquireWrite()
1067 spins = HEAD_SPINS; in acquireWrite()
1068 else if (spins < MAX_HEAD_SPINS) in acquireWrite()
1069 spins <<= 1; in acquireWrite()
[all …]