jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongFieldUpdater.java
equal
deleted
inserted
replaced
452 obj.getClass().getName())); |
452 obj.getClass().getName())); |
453 } |
453 } |
454 |
454 |
455 public final boolean compareAndSet(T obj, long expect, long update) { |
455 public final boolean compareAndSet(T obj, long expect, long update) { |
456 accessCheck(obj); |
456 accessCheck(obj); |
457 return U.compareAndSwapLong(obj, offset, expect, update); |
457 return U.compareAndSetLong(obj, offset, expect, update); |
458 } |
458 } |
459 |
459 |
460 public final boolean weakCompareAndSet(T obj, long expect, long update) { |
460 public final boolean weakCompareAndSet(T obj, long expect, long update) { |
461 accessCheck(obj); |
461 accessCheck(obj); |
462 return U.compareAndSwapLong(obj, offset, expect, update); |
462 return U.compareAndSetLong(obj, offset, expect, update); |
463 } |
463 } |
464 |
464 |
465 public final void set(T obj, long newValue) { |
465 public final void set(T obj, long newValue) { |
466 accessCheck(obj); |
466 accessCheck(obj); |
467 U.putLongVolatile(obj, offset, newValue); |
467 U.putLongVolatile(obj, offset, newValue); |