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.cc442 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 …]
Dmutex.h403 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.cc210 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()