Searched refs:stamp (Results 1 – 5 of 5) sorted by relevance
54 final int stamp; field in AtomicStampedReference.Pair55 private Pair(T reference, int stamp) { in Pair() argument57 this.stamp = stamp; in Pair()59 static <T> Pair<T> of(T reference, int stamp) { in of() argument60 return new Pair<T>(reference, stamp); in of()92 return pair.stamp; in getStamp()105 stampHolder[0] = pair.stamp; in get()152 expectedStamp == current.stamp && in compareAndSet()154 newStamp == current.stamp) || in compareAndSet()166 if (newReference != current.reference || newStamp != current.stamp) in set()[all …]
853 transient private int stamp[]; field in Calendar1525 for (int stamp = MINIMUM_USER_STAMP; stamp < nextStamp; stamp++) { in build()1527 if (fields[index] == stamp) { in build()1609 stamp = new int[FIELD_COUNT]; in Calendar()1868 stamp[field] = nextStamp++; in set()1967 stamp[i] = fields[i] = 0; // UNSET == 0 in clear()1998 stamp[field] = UNSET; in clear()2016 return stamp[field] != UNSET; in isSet()2285 return stamp[field] >= MINIMUM_USER_STAMP; in isExternallySet()2297 if (stamp[i] != UNSET) { in getSetStateFields()[all …]
524 public boolean validate(long stamp) { in validate() argument526 return (stamp & SBITS) == (state & SBITS); in validate()537 public void unlockWrite(long stamp) { in unlockWrite() argument539 if (state != stamp || (stamp & WBIT) == 0L) in unlockWrite()541 U.putLongVolatile(this, STATE, (stamp += WBIT) == 0L ? ORIGIN : stamp); in unlockWrite()554 public void unlockRead(long stamp) { in unlockRead() argument557 if (((s = state) & SBITS) != (stamp & SBITS) || in unlockRead()558 (stamp & ABITS) == 0L || (m = s & ABITS) == 0L || m == WBIT) in unlockRead()580 public void unlock(long stamp) { in unlock() argument581 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()
590 private transient int[] stamp; field in Calendar