jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceArray.java
equal
deleted
inserted
replaced
145 * @param i the index |
145 * @param i the index |
146 * @param newValue the new value |
146 * @param newValue the new value |
147 * @since 1.6 |
147 * @since 1.6 |
148 */ |
148 */ |
149 public final void lazySet(int i, E newValue) { |
149 public final void lazySet(int i, E newValue) { |
150 U.putOrderedObject(array, checkedByteOffset(i), newValue); |
150 U.putObjectRelease(array, checkedByteOffset(i), newValue); |
151 } |
151 } |
152 |
152 |
153 /** |
153 /** |
154 * Atomically sets the element at position {@code i} to the given |
154 * Atomically sets the element at position {@code i} to the given |
155 * value and returns the old value. |
155 * value and returns the old value. |