Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicStampedReference.java25 final int stamp; field in AtomicStampedReference.Pair
26 private Pair(T reference, int stamp) { in Pair() argument
28 this.stamp = stamp; in Pair()
30 static <T> Pair<T> of(T reference, int stamp) { in of() argument
31 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 …]
/libcore/ojluni/src/main/java/java/util/
DCalendar.java769 transient private int stamp[]; field in Calendar
959 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 …]
/libcore/luni/src/main/java/java/util/concurrent/locks/
DStampedLock.java495 public boolean validate(long stamp) { in validate() argument
497 return (stamp & SBITS) == (state & SBITS); in validate()
508 public void unlockWrite(long stamp) { in unlockWrite() argument
510 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() argument
528 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() argument
552 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()