# | Line 183 | Line 183 | public final class UncheckedLockLoops { | |
---|---|---|
183 | private volatile int readBarrier; | |
184 | final int loop(int n) { | |
185 | int sum = 0; | |
186 | < | int x = 0;; |
186 | > | int x = 0; |
187 | while (n-- > 0) { | |
188 | int r1 = readBarrier; | |
189 | x = setValue(LoopHelpers.compute1(getValue())); | |
# | Line 199 | Line 199 | public final class UncheckedLockLoops { | |
199 | private static class BuiltinLockLoop extends LockLoop { | |
200 | final int loop(int n) { | |
201 | int sum = 0; | |
202 | < | int x = 0;; |
202 | > | int x = 0; |
203 | while (n-- > 0) { | |
204 | synchronized(this) { | |
205 | x = setValue(LoopHelpers.compute1(getValue())); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |