jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java
changeset 36936 bfcdf736a998
parent 34339 61d78c23fcdc
child 37363 329dba26ffd2
equal deleted inserted replaced
36935:9a10a2c4dc13 36936:bfcdf736a998
   473             U.putIntVolatile(obj, offset, newValue);
   473             U.putIntVolatile(obj, offset, newValue);
   474         }
   474         }
   475 
   475 
   476         public final void lazySet(T obj, int newValue) {
   476         public final void lazySet(T obj, int newValue) {
   477             accessCheck(obj);
   477             accessCheck(obj);
   478             U.putOrderedInt(obj, offset, newValue);
   478             U.putIntRelease(obj, offset, newValue);
   479         }
   479         }
   480 
   480 
   481         public final int get(T obj) {
   481         public final int get(T obj) {
   482             accessCheck(obj);
   482             accessCheck(obj);
   483             return U.getIntVolatile(obj, offset);
   483             return U.getIntVolatile(obj, offset);