jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java
equal
deleted
inserted
replaced
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); |