Searched refs:cur_state (Results 1 – 5 of 5) sorted by relevance
/art/runtime/base/ |
D | mutex-inl.h | 182 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedLock() local 183 if (LIKELY(cur_state >= 0)) { in SharedLock() 185 done = state_.CompareAndSetWeakAcquire(cur_state, cur_state + 1); in SharedLock() 187 HandleSharedLockContention(self, cur_state); in SharedLock() 206 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedUnlock() local 207 if (LIKELY(cur_state > 0)) { in SharedUnlock() 210 done = state_.CompareAndSetWeakSequentiallyConsistent(cur_state, cur_state - 1); in SharedUnlock() 211 if (done && (cur_state - 1) == 0) { // Weak CAS may fail spuriously. in SharedUnlock() 218 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_; in SharedUnlock()
|
D | mutex.cc | 442 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveLock() local 443 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock() 444 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock() 456 cur_state += kContenderIncrement; in ExclusiveLock() 467 if (futex(state_and_contenders_.Address(), FUTEX_WAIT_PRIVATE, cur_state, in ExclusiveLock() 487 cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveLock() 488 } while ((cur_state & kHeldMask) != 0); in ExclusiveLock() 571 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveTryLock() local 572 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock() 574 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock() [all …]
|
D | mutex.h | 403 void HandleSharedLockContention(Thread* self, int32_t cur_state);
|
/art/test/924-threads/src/art/ |
D | Test924.java | 409 int cur_state = getThreadState(t); in printMajorityThreadState() local 410 states.put(cur_state, states.getOrDefault(cur_state, 0) + 1); in printMajorityThreadState()
|
/art/runtime/ |
D | indirect_reference_table.cc | 210 IRTSegmentState cur_state) { in CheckHoleCount() argument 212 size_t count = CountNullEntries(table, prev_state.top_index, cur_state.top_index); in CheckHoleCount() 214 << " topIndex=" << cur_state.top_index; in CheckHoleCount()
|