jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java
changeset 36936 bfcdf736a998
parent 33674 566777f73c32
child 39725 9548f8d846e9
equal deleted inserted replaced
36935:9a10a2c4dc13 36936:bfcdf736a998
   134      *
   134      *
   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(boolean newValue) {
   138     public final void lazySet(boolean newValue) {
   139         U.putOrderedInt(this, VALUE, (newValue ? 1 : 0));
   139         U.putIntRelease(this, VALUE, (newValue ? 1 : 0));
   140     }
   140     }
   141 
   141 
   142     /**
   142     /**
   143      * Atomically sets to the given value and returns the previous value.
   143      * Atomically sets to the given value and returns the previous value.
   144      *
   144      *