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