# | Line 179 | Line 179 | public final class CheckedLockLoops { | |
---|---|---|
179 | private volatile int readBarrier; | |
180 | final int loop(int n) { | |
181 | int sum = 0; | |
182 | < | int x = 0;; |
182 | > | int x = 0; |
183 | while (n-- > 0) { | |
184 | int r1 = readBarrier; | |
185 | x = setValue(LoopHelpers.compute1(getValue())); | |
# | Line 195 | Line 195 | public final class CheckedLockLoops { | |
195 | private static class BuiltinLockLoop extends LockLoop { | |
196 | final int loop(int n) { | |
197 | int sum = 0; | |
198 | < | int x = 0;; |
198 | > | int x = 0; |
199 | while (n-- > 0) { | |
200 | synchronized(this) { | |
201 | x = setValue(LoopHelpers.compute1(getValue())); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |