Lines Matching defs:update
60 * boolean compareAndSetLeft(Node expect, Node update) {
61 * return leftUpdater.compareAndSet(this, expect, update);
116 * @param update the new value
119 public abstract boolean compareAndSet(T obj, V expect, V update);
134 * @param update the new value
137 public abstract boolean weakCompareAndSet(T obj, V expect, V update);
193 * Internal type checks within all update methods contain
245 void updateCheck(T obj, V update) {
247 (update != null && vclass != null && !vclass.isInstance(update)))
253 public boolean compareAndSet(T obj, V expect, V update) {
255 (update != null && vclass != null &&
256 vclass != update.getClass()))
257 updateCheck(obj, update);
258 return unsafe.compareAndSwapObject(obj, offset, expect, update);
261 public boolean weakCompareAndSet(T obj, V expect, V update) {
264 (update != null && vclass != null &&
265 vclass != update.getClass()))
266 updateCheck(obj, update);
267 return unsafe.compareAndSwapObject(obj, offset, expect, update);