Lines Matching refs:Thread
37 static inline Thread* ThreadForEnv(JNIEnv* env) { in ThreadForEnv()
42 inline void Thread::AllowThreadSuspension() { in AllowThreadSuspension()
43 DCHECK_EQ(Thread::Current(), this); in AllowThreadSuspension()
52 inline void Thread::CheckSuspend() { in CheckSuspend()
53 DCHECK_EQ(Thread::Current(), this); in CheckSuspend()
67 inline void Thread::CheckEmptyCheckpointFromWeakRefAccess(BaseMutex* cond_var_mutex) { in CheckEmptyCheckpointFromWeakRefAccess()
68 Thread* self = Thread::Current(); in CheckEmptyCheckpointFromWeakRefAccess()
92 inline void Thread::CheckEmptyCheckpointFromMutex() { in CheckEmptyCheckpointFromMutex()
93 DCHECK_EQ(Thread::Current(), this); in CheckEmptyCheckpointFromMutex()
103 inline ThreadState Thread::SetState(ThreadState new_state) { in SetState()
109 if (kIsDebugBuild && this != Thread::Current()) { in SetState()
113 << Thread::Current() << ") changing state to " << new_state; in SetState()
118 << *Thread::Current(); in SetState()
123 inline bool Thread::IsThreadSuspensionAllowable() const { in IsThreadSuspensionAllowable()
145 inline void Thread::AssertThreadSuspensionIsAllowable(bool check_locks) const { in AssertThreadSuspensionIsAllowable()
184 inline void Thread::TransitionToSuspendedAndRunCheckpoints(ThreadState new_state) { in TransitionToSuspendedAndRunCheckpoints()
215 inline void Thread::PassActiveSuspendBarriers() { in PassActiveSuspendBarriers()
230 inline void Thread::TransitionFromRunnableToSuspended(ThreadState new_state) { in TransitionFromRunnableToSuspended()
233 DCHECK_EQ(this, Thread::Current()); in TransitionFromRunnableToSuspended()
242 inline ThreadState Thread::TransitionFromSuspendedToRunnable() { in TransitionFromSuspendedToRunnable()
280 Thread* thread_to_pass = nullptr; in TransitionFromSuspendedToRunnable()
292 Thread::resume_cond_->Wait(thread_to_pass); in TransitionFromSuspendedToRunnable()
307 inline mirror::Object* Thread::AllocTlab(size_t bytes) { in AllocTlab()
315 inline bool Thread::PushOnThreadLocalAllocationStack(mirror::Object* obj) { in PushOnThreadLocalAllocationStack()
330 inline void Thread::SetThreadLocalAllocationStack(StackReference<mirror::Object>* start, in SetThreadLocalAllocationStack()
332 DCHECK(Thread::Current() == this) << "Should be called by self"; in SetThreadLocalAllocationStack()
342 inline void Thread::RevokeThreadLocalAllocationStack() { in RevokeThreadLocalAllocationStack()
345 Thread* self = Thread::Current(); in RevokeThreadLocalAllocationStack()
353 inline void Thread::PoisonObjectPointersIfDebug() { in PoisonObjectPointersIfDebug()
355 Thread::Current()->PoisonObjectPointers(); in PoisonObjectPointersIfDebug()
359 inline bool Thread::ModifySuspendCount(Thread* self, in ModifySuspendCount()
390 inline ShadowFrame* Thread::PushShadowFrame(ShadowFrame* new_top_frame) { in PushShadowFrame()
395 inline ShadowFrame* Thread::PopShadowFrame() { in PopShadowFrame()
399 inline uint8_t* Thread::GetStackEndForInterpreter(bool implicit_overflow_check) const { in GetStackEndForInterpreter()
413 inline void Thread::ResetDefaultStackEnd() { in ResetDefaultStackEnd()