jdk/src/share/classes/java/util/concurrent/atomic/AtomicStampedReference.java
changeset 11134 9ff7640994bf
parent 9242 ef138d47df58
child 18576 7a5c231327af
equal deleted inserted replaced
11133:e05aee7c8611 11134:9ff7640994bf
   153             ((newReference == current.reference &&
   153             ((newReference == current.reference &&
   154               newStamp == current.stamp) ||
   154               newStamp == current.stamp) ||
   155              casPair(current, Pair.of(newReference, newStamp)));
   155              casPair(current, Pair.of(newReference, newStamp)));
   156     }
   156     }
   157 
   157 
   158 
       
   159     /**
   158     /**
   160      * Unconditionally sets the value of both the reference and stamp.
   159      * Unconditionally sets the value of both the reference and stamp.
   161      *
   160      *
   162      * @param newReference the new value for the reference
   161      * @param newReference the new value for the reference
   163      * @param newStamp the new value for the stamp
   162      * @param newStamp the new value for the stamp