Home
last modified time | relevance | path

Searched refs:state_ (Results 1 – 10 of 10) sorted by relevance

/art/runtime/base/
Dmutex-inl.h192 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedLock()
195 done = state_.CompareAndSetWeakAcquire(cur_state, cur_state + 1); in SharedLock()
216 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedUnlock()
220 done = state_.CompareAndSetWeakSequentiallyConsistent(cur_state, cur_state - 1); in SharedUnlock()
224 futex(state_.Address(), FUTEX_WAKE_PRIVATE, kWakeAll, nullptr, nullptr, 0); in SharedUnlock()
280 int32_t state = state_.load(std::memory_order_relaxed); in GetExclusiveOwnerTid()
Dmutex.cc748 , state_(0), exclusive_owner_(0), num_contenders_(0) in ReaderWriterMutex()
758 CHECK_EQ(state_.load(std::memory_order_relaxed), 0); in ~ReaderWriterMutex()
779 int32_t cur_state = state_.load(std::memory_order_relaxed); in ExclusiveLock()
782 done = state_.CompareAndSetWeakAcquire(0 /* cur_state*/, -1 /* new state */); in ExclusiveLock()
786 if (!WaitBrieflyFor(&state_, self, [](int32_t v) { return v == 0; })) { in ExclusiveLock()
791 if (futex(state_.Address(), FUTEX_WAIT_PRIVATE, cur_state, nullptr, nullptr, 0) != 0) { in ExclusiveLock()
803 DCHECK_EQ(state_.load(std::memory_order_relaxed), -1); in ExclusiveLock()
821 int32_t cur_state = state_.load(std::memory_order_relaxed); in ExclusiveUnlock()
827 done = state_.CompareAndSetWeakSequentiallyConsistent(-1 /* cur_state*/, 0 /* new state */); in ExclusiveUnlock()
831 futex(state_.Address(), FUTEX_WAKE_PRIVATE, kWakeAll, nullptr, nullptr, 0); in ExclusiveUnlock()
[all …]
Dmutex.h409 AtomicInteger state_; variable
/art/dt_fd_forward/
Ddt_fd_forward.cc83 state_(TransportState::kClosed), in FdForwardTransport()
89 if (old_state == state_) { in ChangeState()
90 state_ = new_state; in ChangeState()
144 state_ == TransportState::kOpen) { in StopListening()
208 if (state_ != TransportState::kOpen || seq_num != current_seq_num_) { in ReadFully()
282 if (state_ != TransportState::kOpen) { in WriteFully()
373 if (state_ == TransportState::kClosed || in Accept()
374 state_ == TransportState::kOpen) { in Accept()
661 return state_ == TransportState::kOpen; in IsOpen()
Ddt_fd_forward.h142 TransportState state_; // GUARDED_BY(state_mutex_); variable
/art/runtime/gc/space/
Dregion_space.h403 state_(RegionState::kRegionStateAllocated), in Region()
411 state_ = RegionState::kRegionStateFree; in Init()
424 return state_; in State()
439 bool is_free = (state_ == RegionState::kRegionStateFree); in IsFree()
469 return state_ == RegionState::kRegionStateAllocated; in IsAllocated()
474 bool is_large = (state_ == RegionState::kRegionStateLarge); in IsLarge()
487 bool is_large_tail = (state_ == RegionState::kRegionStateLargeTail); in IsLargeTail()
639 RegionState state_; // The region state (see RegionState). variable
Dregion_space.cc194 DCHECK(IsLarge() || IsLargeTail()) << static_cast<uint>(state_); in SetAsUnevacFromSpace()
950 << " state=" << state_ in Dump()
1009 state_ = RegionState::kRegionStateFree; in Clear()
1077 state_ = RegionState::kRegionStateAllocated; in Unfree()
1082 state_ = RegionState::kRegionStateLarge; in UnfreeLarge()
1087 state_ = RegionState::kRegionStateLargeTail; in UnfreeLargeTail()
Dregion_space-inl.h495 DCHECK(IsAllocated()) << "state=" << state_; in BytesAllocated()
518 DCHECK(IsAllocated()) << "state=" << state_; in ObjectsAllocated()
/art/test/115-native-bridge/
Dnativebridge.cc262 SignalHandlerTestStatus() : state_(TestStatus::kNone) { in SignalHandlerTestStatus()
266 return state_; in Get()
300 state_ = state; in Set()
304 TestStatus state_; member in SignalHandlerTestStatus
307 if (state_ != expected) { in AssertState()
308 printf("ERROR: unexpected state, was %d, expected %d\n", state_, expected); in AssertState()
/art/runtime/
Dclass_linker.cc7504 state_(State::kAbstractSingle) {} in CopiedMethodRecord()
7509 state_(State::kAbstractSingle) {} in CopiedMethodRecord()
7534 state_ = state; in SetState()
7538 return state_; in GetState()
7786 State state_; member in art::ClassLinker::LinkMethodsHelper::CopiedMethodRecord