Home
last modified time | relevance | path

Searched refs:ThreadState (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_thread_state_test.cpp81 newVm->GetAssociatedJSThread()->UpdateState(ThreadState::CREATED); in CreateNewVMInSeparateThread()
108 bool CheckAllThreadsState(ThreadState expectedState) in CheckAllThreadsState()
147 ThreadState mainState = thread->GetState(); in HWTEST_F_L0()
149 ThreadStateTransitionScope<JSThread, ThreadState::CREATED> scope(thread); in HWTEST_F_L0()
150 EXPECT_TRUE(thread->GetState() == ThreadState::CREATED); in HWTEST_F_L0()
154 ThreadStateTransitionScope<JSThread, ThreadState::RUNNING> scope(thread); in HWTEST_F_L0()
155 EXPECT_TRUE(thread->GetState() == ThreadState::RUNNING); in HWTEST_F_L0()
159 ThreadStateTransitionScope<JSThread, ThreadState::NATIVE> scope(thread); in HWTEST_F_L0()
160 EXPECT_TRUE(thread->GetState() == ThreadState::NATIVE); in HWTEST_F_L0()
164 ThreadStateTransitionScope<JSThread, ThreadState in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
H A Dthread_state.cpp19 std::vector<BreakpointId> ThreadState::GetBreakpointsByLocation(const PtLocation &location) const in GetBreakpointsByLocation()
29 void ThreadState::Reset() in Reset()
42 void ThreadState::BreakOnStart() in BreakOnStart()
49 void ThreadState::Continue() in Continue()
55 void ThreadState::ContinueTo(std::unordered_set<PtLocation, HashLocation> locations) in ContinueTo()
62 void ThreadState::StepInto(std::unordered_set<PtLocation, HashLocation> locations) in StepInto()
70 void ThreadState::StepOver(std::unordered_set<PtLocation, HashLocation> locations) in StepOver()
78 void ThreadState::StepOut() in StepOut()
85 void ThreadState::Pause() in Pause()
92 void ThreadState
[all...]
H A Dthread_state.h28 class ThreadState final {
30 ThreadState() = default;
31 ~ThreadState() = default;
33 NO_COPY_SEMANTIC(ThreadState);
34 NO_MOVE_SEMANTIC(ThreadState);
H A Ddebuggable_thread.h142 ThreadState state_ GUARDED_BY(mutex_);
/arkcompiler/ets_runtime/ecmascript/checkpoint/
H A Dthread_state_transition.h23 template<typename T, ThreadState newState>
37 if constexpr (newState == ThreadState::RUNNING) { in ThreadStateTransitionScope() argument
68 if (oldState_ == ThreadState::RUNNING) { in ~ThreadStateTransitionScope()
81 ThreadState oldState_;
90 ASSERT(self->GetState() == ThreadState::IS_SUSPENDED); in ThreadSuspensionScope()
96 ThreadStateTransitionScope<JSThread, ThreadState::IS_SUSPENDED> scope_;
104 ASSERT(self->GetState() == ThreadState::NATIVE); in ThreadNativeScope()
110 ThreadStateTransitionScope<JSThread, ThreadState::NATIVE> scope_;
124 ThreadStateTransitionScope<T, ThreadState::RUNNING> scope_;
148 ThreadStateTransitionScope<T, ThreadState
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dthread_test.cpp63 void BeginToStateAndEnd(MTManagedThread::ThreadState state) const in BeginToStateAndEnd()
65 if (state == MTManagedThread::ThreadState::NATIVE_CODE) { in BeginToStateAndEnd()
69 } else if (state == MTManagedThread::ThreadState::MANAGED_CODE) { in BeginToStateAndEnd()
161 ASSERT_DEATH(BeginToStateAndEnd(MTManagedThread::ThreadState::NATIVE_CODE), "last frame is: NATIVE_CODE"); in DEATH_TEST_F()
163 BeginToStateAndEnd(MTManagedThread::ThreadState::MANAGED_CODE); in DEATH_TEST_F()
169 BeginToStateAndEnd(MTManagedThread::ThreadState::NATIVE_CODE); in DEATH_TEST_F()
171 ASSERT_DEATH(BeginToStateAndEnd(MTManagedThread::ThreadState::MANAGED_CODE), "last frame is: MANAGED_CODE"); in DEATH_TEST_F()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_thread.cpp61 jsThread->UpdateState(ThreadState::NATIVE); in RegisterThread()
68 jsThread->UpdateState(ThreadState::TERMINATED); in UnregisterThread()
72 ASSERT(jsThread->GetState() == ThreadState::CREATED); in UnregisterThread()
73 jsThread->UpdateState(ThreadState::TERMINATED); in UnregisterThread()
1140 void JSThread::UpdateState(ThreadState newState) in UpdateState()
1142 ThreadState oldState = GetState(); in UpdateState()
1143 if (oldState == ThreadState::RUNNING && newState != ThreadState::RUNNING) { in UpdateState()
1145 } else if (oldState != ThreadState::RUNNING && newState == ThreadState in UpdateState()
[all...]
H A Druntime_lock.cpp29 ThreadStateTransitionScope<JSThread, ThreadState::WAIT> ts(thread_); in RuntimeLockHolder()
H A Djs_thread.h102 enum class ThreadState : uint16_t { class
115 volatile ThreadState state;
119 ThreadState state;
1334 bool s = (GetState() != ThreadState::RUNNING);
1352 return GetState() == ThreadState::IS_SUSPENDED;
1357 return GetState() == ThreadState::RUNNING;
1362 ThreadState GetState() const
1365 return static_cast<enum ThreadState>(stateAndFlags >> THREAD_STATE_OFFSET);
1367 void PUBLIC_API UpdateState(ThreadState newState);
1525 void TransferFromRunningToSuspended(ThreadState newStat
[all...]
/arkcompiler/ets_runtime/ecmascript/jit/
H A Djit.h148 if (thread_->GetState() != ThreadState::RUNNING) { in JitLockHolder()
164 if (thread_->GetState() != ThreadState::RUNNING) { in JitLockHolder()
/arkcompiler/runtime_core/static_core/runtime/
H A Dthread.cpp586 PandaString ManagedThread::LogThreadStack(ThreadState newState) const in LogThreadStack()
589 static std::unordered_map<ThreadState, std::string> threadStateToStringMap = { in LogThreadStack()
590 {ThreadState::NATIVE_CODE, "NATIVE_CODE"}, {ThreadState::MANAGED_CODE, "MANAGED_CODE"}}; in LogThreadStack()
600 PandaStack<ThreadState> copyStack(threadFrameStates_); in LogThreadStack()
926 threadFrameStates_.~PandaStack<ThreadState>(); in FreeInternalMemory()
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dmanaged_thread.h44 enum ThreadState : uint8_t { NATIVE_CODE = 0, MANAGED_CODE = 1 };
817 PandaString LogThreadStack(ThreadState newState) const;
967 PandaStack<ThreadState> threadFrameStates_;
/arkcompiler/ets_runtime/ecmascript/debugger/
H A Ddebugger_api.cpp1322 ecmascript::ThreadState oldState = thread_->GetState(); in DebuggerNativeScope()
1323 if (oldState != ecmascript::ThreadState::RUNNING) { in DebuggerNativeScope()
1328 thread_->UpdateState(ecmascript::ThreadState::NATIVE); in DebuggerNativeScope()
1334 thread_->UpdateState(static_cast<ecmascript::ThreadState>(oldThreadState_)); in ~DebuggerNativeScope()
1341 ecmascript::ThreadState oldState = thread_->GetState(); in DebuggerManagedScope()
1342 if (oldState == ecmascript::ThreadState::RUNNING) { in DebuggerManagedScope()
1347 thread_->UpdateState(ecmascript::ThreadState::RUNNING); in DebuggerManagedScope()
1353 thread_->UpdateState(static_cast<ecmascript::ThreadState>(oldThreadState_)); in ~DebuggerManagedScope()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
H A Dthread_state.cpp32 ThreadState state;
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp3912 thread_->UpdateState(ecmascript::ThreadState::NATIVE); in JsiNativeScope()
3917 thread_->UpdateState(static_cast<ecmascript::ThreadState>(oldThreadState_)); in ~JsiNativeScope()
3931 ecmascript::ThreadState oldState = thread_->GetState(); in JsiFastNativeScope()
3932 if (oldState == ecmascript::ThreadState::RUNNING) { in JsiFastNativeScope()
3937 thread_->UpdateState(ecmascript::ThreadState::RUNNING); in JsiFastNativeScope()
3943 thread_->UpdateState(static_cast<ecmascript::ThreadState>(oldThreadState_)); in ~JsiFastNativeScope()

Completed in 27 milliseconds