jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java
equal
deleted
inserted
replaced
134 * @param i the index |
134 * @param i the index |
135 * @param newValue the new value |
135 * @param newValue the new value |
136 * @since 1.6 |
136 * @since 1.6 |
137 */ |
137 */ |
138 public final void lazySet(int i, int newValue) { |
138 public final void lazySet(int i, int newValue) { |
139 U.putOrderedInt(array, checkedByteOffset(i), newValue); |
139 U.putIntRelease(array, checkedByteOffset(i), newValue); |
140 } |
140 } |
141 |
141 |
142 /** |
142 /** |
143 * Atomically sets the element at position {@code i} to the given |
143 * Atomically sets the element at position {@code i} to the given |
144 * value and returns the old value. |
144 * value and returns the old value. |