Searched refs:ThreadFlag (Results 1 – 10 of 10) sorted by relevance
89 } else if (state_and_flags.IsFlagSet(ThreadFlag::kCheckpointRequest)) { in CheckSuspend()91 } else if (state_and_flags.IsFlagSet(ThreadFlag::kSuspendRequest) && in CheckSuspend()92 !state_and_flags.IsFlagSet(ThreadFlag::kSuspensionImmune)) { in CheckSuspend()95 } else if (state_and_flags.IsFlagSet(ThreadFlag::kEmptyCheckpointRequest)) { in CheckSuspend()98 DCHECK(state_and_flags.IsFlagSet(ThreadFlag::kSuspensionImmune)); in CheckSuspend()113 if (ReadFlag(ThreadFlag::kEmptyCheckpointRequest)) { in CheckEmptyCheckpointFromWeakRefAccess()138 if (ReadFlag(ThreadFlag::kEmptyCheckpointRequest)) { in CheckEmptyCheckpointFromMutex()239 if (UNLIKELY(old_state_and_flags.IsFlagSet(ThreadFlag::kCheckpointRequest))) { in TransitionToSuspendedAndRunCheckpoints()244 if (UNLIKELY(old_state_and_flags.IsFlagSet(ThreadFlag::kEmptyCheckpointRequest))) { in TransitionToSuspendedAndRunCheckpoints()249 DCHECK(!old_state_and_flags.IsFlagSet(ThreadFlag::kCheckpointRequest)); in TransitionToSuspendedAndRunCheckpoints()[all …]
125 enum class ThreadFlag : uint32_t { enum371 state_and_flags.IsFlagSet(ThreadFlag::kSuspendRequest); in IsSuspended()1390 bool ReadFlag(ThreadFlag flag) const { in ReadFlag()1394 void AtomicSetFlag(ThreadFlag flag, std::memory_order order = std::memory_order_seq_cst) {1399 void AtomicClearFlag(ThreadFlag flag, std::memory_order order = std::memory_order_seq_cst) {1595 return enum_cast<uint32_t>(ThreadFlag::kLastFlag) | in AllThreadFlags()1596 (enum_cast<uint32_t>(ThreadFlag::kLastFlag) - 1u); in AllThreadFlags()1600 return enum_cast<uint32_t>(ThreadFlag::kSuspendRequest) | in SuspendOrCheckpointRequestFlags()1601 enum_cast<uint32_t>(ThreadFlag::kCheckpointRequest) | in SuspendOrCheckpointRequestFlags()1602 enum_cast<uint32_t>(ThreadFlag::kEmptyCheckpointRequest); in SuspendOrCheckpointRequestFlags()[all …]
184 AtomicSetFlag(ThreadFlag::kMonitorJniEntryExit); in InitTlsEntryPoints()1499 if (!ReadFlag(ThreadFlag::kActiveSuspendBarrier)) { in PassActiveSuspendBarriers()1519 AtomicClearFlag(ThreadFlag::kActiveSuspendBarrier); in PassActiveSuspendBarriers()1560 AtomicClearFlag(ThreadFlag::kCheckpointRequest); in RunCheckpointFunction()1573 AtomicClearFlag(ThreadFlag::kEmptyCheckpointRequest); in RunEmptyCheckpoint()1585 new_state_and_flags.SetFlag(ThreadFlag::kCheckpointRequest); in RequestCheckpoint()1595 DCHECK(ReadFlag(ThreadFlag::kCheckpointRequest)); in RequestCheckpoint()1611 new_state_and_flags.SetFlag(ThreadFlag::kEmptyCheckpointRequest); in RequestEmptyCheckpoint()1732 AtomicClearFlag(ThreadFlag::kActiveSuspendBarrier); in RequestSynchronousCheckpoint()1759 if (ReadFlag(ThreadFlag::kRunningFlipFunction)) { in RequestSynchronousCheckpoint()[all …]
509 thread->ReadFlag(ThreadFlag::kEmptyCheckpointRequest)) { in RunEmptyCheckpoint()817 DCHECK(!self->ReadFlag(ThreadFlag::kPendingFlipFunction)); in SuspendAll()818 DCHECK(!self->ReadFlag(ThreadFlag::kRunningFlipFunction)); in SuspendAll()879 thread->AtomicClearFlag(ThreadFlag::kActiveSuspendBarrier); in SuspendAllInternal()892 self->AtomicSetFlag(ThreadFlag::kSuspensionImmune, std::memory_order_relaxed); in SuspendAllInternal()993 self->AtomicClearFlag(ThreadFlag::kSuspensionImmune, std::memory_order_relaxed); in ResumeAllInternal()1084 thread->AtomicClearFlag(ThreadFlag::kActiveSuspendBarrier); in SuspendThread()1138 thread->AtomicClearFlag(ThreadFlag::kActiveSuspendBarrier); in SuspendThread()1480 if (!state_and_flags.IsFlagSet(ThreadFlag::kRunningFlipFunction) && in Unregister()1481 !state_and_flags.IsFlagSet(ThreadFlag::kSuspendRequest)) { in Unregister()
315 appropriate `ThreadFlag` entry to request suspension or a checkpoint. Note
57 static_cast<uint32_t>(art::ThreadFlag::kSuspendRequest))
163 if (UNLIKELY(self->ReadFlag(ThreadFlag::kMonitorJniEntryExit))) { in GenericJniMethodEnd()
2038 if (UNLIKELY(self->ReadFlag(ThreadFlag::kMonitorJniEntryExit))) { in artQuickGenericJniTrampoline()
553 DCHECK(!self->ReadFlag(art::ThreadFlag::kSuspensionImmune)); in SuspendCheck()
916 self->ReadFlag(ThreadFlag::kMonitorJniEntryExit)); in CompileAndRun_fooJJ_synchronizedImpl()923 self->ReadFlag(ThreadFlag::kMonitorJniEntryExit)); in CompileAndRun_fooJJ_synchronizedImpl()