Home | History | Annotate | Download | only in concurrent

Lines Matching defs:SPINS

189      * range of test machines. Spins and yields entail some limited
196 * mean time it cannot cancel the offer, so instead spins/yields.
285 * The bound for spins while waiting for a match. The actual
289 private static final int SPINS = 1 << 10;
314 int hash; // Pseudo-random for spins
377 for (int h = p.hash, spins = SPINS;;) {
385 else if (spins > 0) {
388 h = SPINS | (int)t.getId();
390 (--spins & ((SPINS >>> 1) - 1)) == 0)
394 spins = SPINS; // releaser hasn't set match yet
485 int spins = (NCPU > 1) ? SPINS : 1;
488 if (spins > 0) {
491 h = SPINS | (int)t.getId();
492 else if (h < 0 && (--spins & ((SPINS >>> 1) - 1)) == 0)
496 spins = SPINS;