Searched refs:WBIT (Results 1 – 1 of 1) sorted by relevance
287 private static final long WBIT = 1L << LG_READERS; field in StampedLock288 private static final long RBITS = WBIT - 1L;290 private static final long ABITS = RBITS | WBIT;294 private static final long ORIGIN = WBIT << 1;349 U.compareAndSwapLong(this, STATE, s, next = s + WBIT)) ? in writeLock()362 U.compareAndSwapLong(this, STATE, s, next = s + WBIT)) ? in tryWriteLock()436 if ((m = (s = state) & ABITS) == WBIT) in tryReadLock()465 if ((m = (s = state) & ABITS) != WBIT) { in tryReadLock()509 return (((s = state) & WBIT) == 0L) ? (s & SBITS) : 0L; in tryOptimisticRead()539 if (state != stamp || (stamp & WBIT) == 0L) in unlockWrite()[all …]