Home
last modified time | relevance | path

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

/art/runtime/base/
Dmutex-inl.h180 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedLock()
183 done = state_.CompareAndSetWeakAcquire(cur_state, cur_state + 1); in SharedLock()
204 int32_t cur_state = state_.load(std::memory_order_relaxed); in SharedUnlock()
210 done = state_.CompareAndSetWeakSequentiallyConsistent(cur_state, cur_state - 1); in SharedUnlock()
215 futex(state_.Address(), FUTEX_WAKE_PRIVATE, kWakeAll, nullptr, nullptr, 0); in SharedUnlock()
271 int32_t state = state_.load(std::memory_order_relaxed); in GetExclusiveOwnerTid()
Dmutex.cc545 , state_(0), num_pending_readers_(0), num_pending_writers_(0) in ReaderWriterMutex()
556 CHECK_EQ(state_.load(std::memory_order_relaxed), 0); in ~ReaderWriterMutex()
578 int32_t cur_state = state_.load(std::memory_order_relaxed); in ExclusiveLock()
581 done = state_.CompareAndSetWeakAcquire(0 /* cur_state*/, -1 /* new state */); in ExclusiveLock()
589 if (futex(state_.Address(), FUTEX_WAIT_PRIVATE, cur_state, nullptr, nullptr, 0) != 0) { in ExclusiveLock()
599 DCHECK_EQ(state_.load(std::memory_order_relaxed), -1); in ExclusiveLock()
617 int32_t cur_state = state_.load(std::memory_order_relaxed); in ExclusiveUnlock()
625 done = state_.CompareAndSetWeakSequentiallyConsistent(-1 /* cur_state*/, 0 /* new state */); in ExclusiveUnlock()
630 futex(state_.Address(), FUTEX_WAKE_PRIVATE, kWakeAll, nullptr, nullptr, 0); in ExclusiveUnlock()
651 int32_t cur_state = state_.load(std::memory_order_relaxed); in ExclusiveLockWithTimeout()
[all …]
Dmutex.h363 AtomicInteger state_; variable
/art/dt_fd_forward/
Ddt_fd_forward.cc81 state_(TransportState::kClosed), in FdForwardTransport()
87 if (old_state == state_) { in ChangeState()
88 state_ = new_state; in ChangeState()
142 state_ == TransportState::kOpen) { in StopListening()
206 if (state_ != TransportState::kOpen || seq_num != current_seq_num_) { in ReadFully()
280 if (state_ != TransportState::kOpen) { in WriteFully()
366 if (state_ == TransportState::kClosed || in Accept()
367 state_ == TransportState::kOpen) { in Accept()
642 return state_ == TransportState::kOpen; in IsOpen()
Ddt_fd_forward.h142 TransportState state_; // GUARDED_BY(state_mutex_); variable
/art/runtime/gc/space/
Dregion_space.h388 state_(RegionState::kRegionStateAllocated), in Region()
396 state_ = RegionState::kRegionStateFree; in Init()
409 return state_; in State()
424 bool is_free = (state_ == RegionState::kRegionStateFree); in IsFree()
454 return state_ == RegionState::kRegionStateAllocated; in IsAllocated()
459 bool is_large = (state_ == RegionState::kRegionStateLarge); in IsLarge()
472 bool is_large_tail = (state_ == RegionState::kRegionStateLargeTail); in IsLargeTail()
619 RegionState state_; // The region state (see RegionState). variable
Dregion_space.cc193 DCHECK(IsLarge() || IsLargeTail()) << static_cast<uint>(state_); in SetAsUnevacFromSpace()
908 << " state=" << state_ in Dump()
967 state_ = RegionState::kRegionStateFree; in Clear()
1029 state_ = RegionState::kRegionStateAllocated; in Unfree()
1034 state_ = RegionState::kRegionStateLarge; in UnfreeLarge()
1039 state_ = RegionState::kRegionStateLargeTail; in UnfreeLargeTail()
Dregion_space-inl.h502 DCHECK(IsAllocated()) << "state=" << state_; in BytesAllocated()
525 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/jdwp/
Djdwp_priv.h113 JdwpState* state_; variable
Djdwp_adb.cc478 return state_->HandlePacket(); in ProcessIncoming()
Djdwp_socket.cc525 return state_->HandlePacket(); in ProcessIncoming()
Djdwp_main.cc157 : state_(state), socket_lock_("JdwpNetStateBase lock", kJdwpSocketLock) { in JdwpNetStateBase()