jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java
changeset 36936 bfcdf736a998
parent 33674 566777f73c32
child 39725 9548f8d846e9
equal deleted inserted replaced
36935:9a10a2c4dc13 36936:bfcdf736a998
   106      *
   106      *
   107      * @param newValue the new value
   107      * @param newValue the new value
   108      * @since 1.6
   108      * @since 1.6
   109      */
   109      */
   110     public final void lazySet(int newValue) {
   110     public final void lazySet(int newValue) {
   111         U.putOrderedInt(this, VALUE, newValue);
   111         U.putIntRelease(this, VALUE, newValue);
   112     }
   112     }
   113 
   113 
   114     /**
   114     /**
   115      * Atomically sets to the given value and returns the old value.
   115      * Atomically sets to the given value and returns the old value.
   116      *
   116      *