# | Line 87 | Line 87 | public final class SimpleSpinLockLoops { | |
---|---|---|
87 | if (k > 0) { | |
88 | x = v; | |
89 | while (k-- > 0) | |
90 | < | x = LoopHelpers.compute4(x); |
90 | > | x = LoopHelpers.compute6(x); |
91 | v = x; | |
92 | } | |
93 | else x = sum + 1; | |
# | Line 95 | Line 95 | public final class SimpleSpinLockLoops { | |
95 | if ((x += readBarrier) == 0) | |
96 | ++readBarrier; | |
97 | for (int l = x & 1; l > 0; --l) | |
98 | < | sum += LoopHelpers.compute4(sum); |
98 | > | sum += LoopHelpers.compute6(sum); |
99 | } | |
100 | barrier.await(); | |
101 | result += sum; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |