# | Line 77 | Line 77 | public final class NoopSpinLockLoops { | |
---|---|---|
77 | int x = sum + 1; | |
78 | int n = iters; | |
79 | while (n-- > 0) { | |
80 | < | while (!lock.compareAndSet(0, 1)) ; |
80 | > | do {} while (!lock.compareAndSet(0, 1)); |
81 | x = LoopHelpers.compute4(x); | |
82 | lock.set(0); | |
83 | if ((x += readBarrier) == 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |