Searched refs:stamp (Results 1 – 4 of 4) sorted by relevance
25 final int stamp; field in AtomicStampedReference.Pair26 private Pair(T reference, int stamp) { in Pair() argument28 this.stamp = stamp; in Pair()30 static <T> Pair<T> of(T reference, int stamp) { in of() argument31 return new Pair<T>(reference, stamp); in of()63 return pair.stamp; in getStamp()76 stampHolder[0] = pair.stamp; in get()123 expectedStamp == current.stamp && in compareAndSet()125 newStamp == current.stamp) || in compareAndSet()137 if (newReference != current.reference || newStamp != current.stamp) in set()[all …]
769 transient private int stamp[]; field in Calendar959 stamp = new int[FIELD_COUNT]; in Calendar()1203 stamp[field] = nextStamp++; in set()1302 stamp[i] = fields[i] = 0; // UNSET == 0 in clear()1333 stamp[field] = UNSET; in clear()1350 return stamp[field] != UNSET; in isSet()1562 return stamp[field] >= MINIMUM_USER_STAMP; in isExternallySet()1574 if (stamp[i] != UNSET) { in getSetStateFields()1597 stamp[i] = COMPUTED; in setFieldsComputed()1604 stamp[i] = COMPUTED; in setFieldsComputed()[all …]
495 public boolean validate(long stamp) { in validate() argument497 return (stamp & SBITS) == (state & SBITS); in validate()508 public void unlockWrite(long stamp) { in unlockWrite() argument510 if (state != stamp || (stamp & WBIT) == 0L) in unlockWrite()512 U.putLongVolatile(this, STATE, (stamp += WBIT) == 0L ? ORIGIN : stamp); in unlockWrite()525 public void unlockRead(long stamp) { in unlockRead() argument528 if (((s = state) & SBITS) != (stamp & SBITS) || in unlockRead()529 (stamp & ABITS) == 0L || (m = s & ABITS) == 0L || m == WBIT) in unlockRead()551 public void unlock(long stamp) { in unlock() argument552 long a = stamp & ABITS, m, s; WNode h; in unlock()[all …]
117 for (int stamp = MINIMUM_USER_STAMP; stamp < nextStamp; stamp++) { in establish()119 if (field[index] == stamp) { in establish()