Home
last modified time | relevance | path

Searched refs:ThreadState (Results 1 – 25 of 38) sorted by relevance

12

/art/openjdkjvmti/
Dti_thread.cc105 art::ScopedThreadSuspension sts(self, art::ThreadState::kNative); in Post()
159 art::ThreadState::kWaitingForDebuggerToAttach); in Register()
205 art::ThreadState::kWaitingForDebuggerToAttach); in Unregister()
250 } else if (*thr == nullptr || (*thr)->GetState() == art::ThreadState::kTerminated) { in GetAliveNativeThread()
381 art::ThreadState art_state;
393 thread_state.art_state = art::ThreadState::kStarting; in GetNativeThreadState()
403 art::ThreadState internal_thread_state = state.art_state; in GetJvmtiThreadStateFromInternal()
422 case art::ThreadState::kRunnable: in GetJvmtiThreadStateFromInternal()
423 case art::ThreadState::kWaitingWeakGcRootRead: in GetJvmtiThreadStateFromInternal()
424 case art::ThreadState::kSuspended: in GetJvmtiThreadStateFromInternal()
[all …]
Dti_dump.cc51 art::ScopedThreadSuspension sts(thread, art::ThreadState::kNative); in SigQuit()
63 art::ThreadState::kWaitingForDebuggerToAttach); in Register()
70 art::ThreadState::kWaitingForDebuggerToAttach); in Unregister()
Devents-inl.h59 DCHECK_EQ(art::Thread::Current()->GetState(), art::ThreadState::kNative); in ScopedEventDispatchEnvironment()
65 DCHECK_EQ(art::Thread::Current()->GetState(), art::ThreadState::kNative); in ScopedEventDispatchEnvironment()
81 DCHECK_EQ(art::Thread::Current()->GetState(), art::ThreadState::kNative); in ~ScopedEventDispatchEnvironment()
217 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchClassFileLoadHookEvent()
272 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEvent()
286 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEvent()
300 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEventOnEnv()
315 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEventOnEnv()
460 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchClassLoadOrPrepareEvent()
495 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative);
Dti_phase.cc143 art::ThreadState::kWaitingForDebuggerToAttach); in Register()
150 art::ThreadState::kWaitingForDebuggerToAttach); in Unregister()
Dti_ddms.cc64 art::ScopedThreadStateChange stcs(self, art::ThreadState::kNative); in HandleChunk()
Dti_stack.cc254 art::ThreadState state = thread->GetState(); in GetStackTrace()
255 if (state == art::ThreadState::kStarting || thread->IsStillStarting()) { in GetStackTrace()
356 art::ScopedThreadStateChange tsc(self, art::ThreadState::kWaitingForCheckPointsToRun); in RunCheckpointAndWait()
719 art::ThreadState state = thread->GetState(); in GetFrameCount()
720 if (state == art::ThreadState::kStarting || thread->IsStillStarting()) { in GetFrameCount()
789 art::ThreadState state = thread->GetState(); in GetFrameLocation()
790 if (state == art::ThreadState::kStarting || thread->IsStillStarting()) { in GetFrameLocation()
929 if (!target->RequestSynchronousCheckpoint(&closure, art::ThreadState::kRunnable)) { in GetOwnedMonitorInfoCommon()
Dti_search.cc204 art::ThreadState::kWaitingForDebuggerToAttach); in Register()
211 art::ThreadState::kWaitingForDebuggerToAttach); in Unregister()
Dtransform.cc134 CHECK_EQ(self->GetState(), art::ThreadState::kNative) in Action()
263 art::ScopedThreadStateChange stsc(self, art::ThreadState::kNative); in TransformSingleClassDirect()
Ddeopt_manager.cc103 art::ThreadState::kWaitingForDebuggerToAttach); in Setup()
111 art::ThreadState::kWaitingForDebuggerToAttach); in Shutdown()
Dti_method.cc80 art::ScopedThreadSuspension sts(thread, art::ThreadState::kNative); in RegisterNativeMethod()
99 art::ThreadState::kWaitingForDebuggerToAttach); in Register()
107 art::ThreadState::kWaitingForDebuggerToAttach); in Unregister()
954 if (!target->RequestSynchronousCheckpoint(&c, art::ThreadState::kRunnable)) { in GetLocalInstance()
/art/runtime/
Dscoped_thread_state_change.h44 ALWAYS_INLINE ScopedThreadStateChange(Thread* self, ThreadState new_thread_state)
58 const ThreadState thread_state_ = kTerminated;
61 ThreadState old_thread_state_ = kTerminated;
196 ALWAYS_INLINE explicit ScopedThreadSuspension(Thread* self, ThreadState suspended_state)
204 const ThreadState suspended_state_;
Dthread_state.h24 enum ThreadState { enum
55 std::ostream& operator<<(std::ostream& os, const ThreadState& rhs);
Dthread-inl.h102 inline ThreadState Thread::SetState(ThreadState new_state) { in SetState()
118 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); in SetState()
182 inline void Thread::TransitionToSuspendedAndRunCheckpoints(ThreadState new_state) { in TransitionToSuspendedAndRunCheckpoints()
228 inline void Thread::TransitionFromRunnableToSuspended(ThreadState new_state) { in TransitionFromRunnableToSuspended()
240 inline ThreadState Thread::TransitionFromSuspendedToRunnable() { in TransitionFromSuspendedToRunnable()
244 DCHECK_NE(static_cast<ThreadState>(old_state), kRunnable); in TransitionFromSuspendedToRunnable()
302 return static_cast<ThreadState>(old_state); in TransitionFromSuspendedToRunnable()
Dmonitor_objects_stack_visitor.h65 virtual void VisitWaitingObject(ObjPtr<mirror::Object> obj, ThreadState state)
70 ThreadState state,
Dscoped_thread_state_change-inl.h33 inline ScopedThreadStateChange::ScopedThreadStateChange(Thread* self, ThreadState new_thread_state) in ScopedThreadStateChange()
124 inline ScopedThreadSuspension::ScopedThreadSuspension(Thread* self, ThreadState suspended_state) in ScopedThreadSuspension()
Dmonitor_objects_stack_visitor.cc46 ThreadState state = Monitor::FetchState(GetThread(), in VisitFrame()
Dthread.h236 ThreadState GetState() const { in GetState()
239 return static_cast<ThreadState>(tls32_.state_and_flags.as_struct.state); in GetState()
242 ThreadState SetState(ThreadState new_state);
294 ThreadState suspend_state = ThreadState::kWaiting)
321 ALWAYS_INLINE ThreadState TransitionFromSuspendedToRunnable()
327 ALWAYS_INLINE void TransitionFromRunnableToSuspended(ThreadState new_state)
1320 ThreadState SetStateUnsafe(ThreadState new_state) { in SetStateUnsafe()
1321 ThreadState old_state = GetState(); in SetStateUnsafe()
1376 ALWAYS_INLINE void TransitionToSuspendedAndRunCheckpoints(ThreadState new_state)
Dmonitor.h102 bool interruptShouldThrow, ThreadState why)
105 static ThreadState FetchState(const Thread* thread,
272 void Wait(Thread* self, int64_t msec, int32_t nsec, bool interruptShouldThrow, ThreadState why)
Dmonitor_test.cc105 ThreadState::kTimedWaiting); in Run()
150 ThreadState::kTimedWaiting); in Run()
195 ThreadState::kTimedWaiting); in Run()
Dreference_table_test.cc189 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F()
256 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F()
Dthread.cc311 ScopedThreadSuspension sts(this, ThreadState::kWaiting); in Park()
335 ScopedThreadSuspension sts(this, ThreadState::kTimedWaiting); in Park()
1622 void Wait(Thread* self, ThreadState suspend_state) { in Wait()
1623 if (suspend_state != ThreadState::kRunnable) { in Wait()
1636 bool Thread::RequestSynchronousCheckpoint(Closure* function, ThreadState suspend_state) { in RequestSynchronousCheckpoint()
1649 if (GetState() == ThreadState::kTerminated) { in RequestSynchronousCheckpoint()
1673 if (GetState() == ThreadState::kRunnable) { in RequestSynchronousCheckpoint()
1710 while (GetState() == ThreadState::kRunnable) { in RequestSynchronousCheckpoint()
1723 DCHECK_NE(GetState(), ThreadState::kRunnable); in RequestSynchronousCheckpoint()
2026 void VisitWaitingObject(ObjPtr<mirror::Object> obj, ThreadState state ATTRIBUTE_UNUSED) in VisitWaitingObject()
[all …]
/art/test/708-jit-cache-churn/
Djit.cc49 ScopedThreadSuspension selfSuspension(Thread::Current(), art::ThreadState::kNative); in Java_JitCacheChurnTest_removeJitCompiledMethod()
/art/tools/tracefast-plugin/
Dtracefast.cc148 art::ThreadState::kWaitingForMethodTracingStart); in NextRuntimePhase()
159 art::ThreadState::kWaitingForMethodTracingStart); in ArtPlugin_Initialize()
/art/runtime/native/
Djava_lang_Thread.cc74 ThreadState internal_thread_state = (has_been_started ? kTerminated : kStarting); in Thread_nativeGetStatus()
/art/runtime/ti/
Dagent.cc74 ScopedThreadStateChange stsc(Thread::Current(), ThreadState::kNative); in DoLoadHelper()

12