Home
last modified time | relevance | path

Searched refs:stamp (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicStampedReference.java54 final int stamp; field in AtomicStampedReference.Pair
55 private Pair(T reference, int stamp) { in Pair() argument
57 this.stamp = stamp; in Pair()
59 static <T> Pair<T> of(T reference, int stamp) { in of() argument
60 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 …]
/libcore/ojluni/src/main/java/java/util/
DCalendar.java853 transient private int stamp[]; field in Calendar
1525 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 …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java524 public boolean validate(long stamp) { in validate() argument
526 return (stamp & SBITS) == (state & SBITS); in validate()
537 public void unlockWrite(long stamp) { in unlockWrite() argument
539 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() argument
557 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() argument
581 long a = stamp & ABITS, m, s; WNode h; in unlock()
[all …]
/libcore/ojluni/src/main/java/java/text/
DCalendarBuilder.java117 for (int stamp = MINIMUM_USER_STAMP; stamp < nextStamp; stamp++) { in establish()
119 if (field[index] == stamp) { in establish()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java590 private transient int[] stamp; field in Calendar