Searched refs:cur_state (Results 1 – 5 of 5) sorted by relevance
/art/runtime/base/ |
D | mutex-inl.h | 180 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedLock() local 181 if (LIKELY(cur_state >= 0)) { in SharedLock() 183 done = state_.CompareAndSetWeakAcquire(cur_state, cur_state + 1); in SharedLock() 185 HandleSharedLockContention(self, cur_state); in SharedLock() 204 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedUnlock() local 205 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() 219 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_; in SharedUnlock()
|
D | mutex.cc | 369 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveLock() local 370 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock() 371 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock() 378 cur_state += kContenderIncrement; in ExclusiveLock() 382 if (futex(state_and_contenders_.Address(), FUTEX_WAIT_PRIVATE, cur_state, in ExclusiveLock() 421 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveTryLock() local 422 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock() 424 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock() 478 int32_t cur_state = state_and_contenders_.load(std::memory_order_relaxed); in ExclusiveUnlock() local 479 if (LIKELY((cur_state & kHeldMask) != 0)) { in ExclusiveUnlock() [all …]
|
D | mutex.h | 360 void HandleSharedLockContention(Thread* self, int32_t cur_state);
|
/art/runtime/ |
D | indirect_reference_table.cc | 205 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()
|
/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()
|