Home
last modified time | relevance | path

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

/art/runtime/base/
Dmutex-inl.h182 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()
Dmutex.cc428 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveLock() local
429 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock()
430 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()
442 cur_state += kContenderIncrement; in ExclusiveLock()
447 if (futex(state_and_contenders_.Address(), FUTEX_WAIT_PRIVATE, cur_state, in ExclusiveLock()
460 cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveLock()
461 } while ((cur_state & kHeldMask) != 0); in ExclusiveLock()
493 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveTryLock() local
494 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock()
496 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()
[all …]
Dmutex.h387 void HandleSharedLockContention(Thread* self, int32_t cur_state);
/art/test/924-threads/src/art/
DTest924.java409 int cur_state = getThreadState(t); in printMajorityThreadState() local
410 states.put(cur_state, states.getOrDefault(cur_state, 0) + 1); in printMajorityThreadState()
/art/runtime/
Dindirect_reference_table.cc205 IRTSegmentState cur_state) { in CheckHoleCount() argument
207 size_t count = CountNullEntries(table, prev_state.top_index, cur_state.top_index); in CheckHoleCount()
209 << " topIndex=" << cur_state.top_index; in CheckHoleCount()