jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java
changeset 36936 bfcdf736a998
parent 33674 566777f73c32
child 39725 9548f8d846e9
equal deleted inserted replaced
36935:9a10a2c4dc13 36936:bfcdf736a998
   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.