jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java
changeset 36936 bfcdf736a998
parent 33674 566777f73c32
child 39725 9548f8d846e9
equal deleted inserted replaced
36935:9a10a2c4dc13 36936:bfcdf736a998
   122      *
   122      *
   123      * @param newValue the new value
   123      * @param newValue the new value
   124      * @since 1.6
   124      * @since 1.6
   125      */
   125      */
   126     public final void lazySet(long newValue) {
   126     public final void lazySet(long newValue) {
   127         U.putOrderedLong(this, VALUE, newValue);
   127         U.putLongRelease(this, VALUE, newValue);
   128     }
   128     }
   129 
   129 
   130     /**
   130     /**
   131      * Atomically sets to the given value and returns the old value.
   131      * Atomically sets to the given value and returns the old value.
   132      *
   132      *