• Home
  • Raw
  • Download

Lines Matching refs:Thread

74 bool Thread::is_started_ = false;
75 pthread_key_t Thread::pthread_key_self_;
76 ConditionVariable* Thread::resume_cond_ = NULL;
80 void Thread::InitCardTable() { in InitCardTable()
93 void Thread::InitTlsEntryPoints() { in InitTlsEntryPoints()
111 void Thread::SetDeoptimizationShadowFrame(ShadowFrame* sf) { in SetDeoptimizationShadowFrame()
115 void Thread::SetDeoptimizationReturnValue(const JValue& ret_val) { in SetDeoptimizationReturnValue()
119 ShadowFrame* Thread::GetAndClearDeoptimizationShadowFrame(JValue* ret_val) { in GetAndClearDeoptimizationShadowFrame()
126 void Thread::InitTid() { in InitTid()
130 void Thread::InitAfterFork() { in InitAfterFork()
136 void* Thread::CreateCallback(void* arg) { in CreateCallback()
137 Thread* self = reinterpret_cast<Thread*>(arg); in CreateCallback()
184 Thread* Thread::FromManagedThread(const ScopedObjectAccessUnchecked& soa, in FromManagedThread()
187 Thread* result = reinterpret_cast<Thread*>(static_cast<uintptr_t>(f->GetInt(thread_peer))); in FromManagedThread()
199 Thread* Thread::FromManagedThread(const ScopedObjectAccessUnchecked& soa, jobject java_thread) { in FromManagedThread()
221 stack_size += Thread::kStackOverflowReservedBytes; in FixStackSize()
229 void Thread::CreateNativeThread(JNIEnv* env, jobject java_peer, size_t stack_size, bool is_daemon) { in CreateNativeThread()
231 Thread* self = static_cast<JNIEnvExt*>(env)->self; in CreateNativeThread()
250 Thread* child_thread = new Thread(is_daemon); in CreateNativeThread()
265 …int pthread_create_result = pthread_create(&new_pthread, &attr, Thread::CreateCallback, child_thre… in CreateNativeThread()
290 void Thread::Init(ThreadList* thread_list, JavaVMExt* java_vm) { in Init()
295 CHECK(Thread::Current() == NULL); in Init()
305 CHECK_PTHREAD_CALL(pthread_setspecific, (Thread::pthread_key_self_, this), "attach self"); in Init()
306 DCHECK_EQ(Thread::Current(), this); in Init()
315 Thread* Thread::Attach(const char* thread_name, bool as_daemon, jobject thread_group, in Attach()
317 Thread* self; in Attach()
330 self = new Thread(as_daemon); in Attach()
356 void Thread::CreatePeer(const char* name, bool as_daemon, jobject thread_group) { in CreatePeer()
383 Thread* self = this; in CreatePeer()
384 DCHECK_EQ(self, Thread::Current()); in CreatePeer()
411 void Thread::SetThreadName(const char* name) { in SetThreadName()
417 void Thread::InitStackHwm() { in InitStackHwm()
471 void Thread::ShortDump(std::ostream& os) const { in ShortDump()
485 void Thread::Dump(std::ostream& os) const { in Dump()
490 mirror::String* Thread::GetThreadName(const ScopedObjectAccessUnchecked& soa) const { in GetThreadName()
495 void Thread::GetThreadName(std::string& name) const { in GetThreadName()
499 uint64_t Thread::GetCpuMicroTime() const { in GetCpuMicroTime()
512 void Thread::AtomicSetFlag(ThreadFlag flag) { in AtomicSetFlag()
516 void Thread::AtomicClearFlag(ThreadFlag flag) { in AtomicClearFlag()
521 static void UnsafeLogFatalForSuspendCount(Thread* self, Thread* thread) NO_THREAD_SAFETY_ANALYSIS { in UnsafeLogFatalForSuspendCount()
541 void Thread::ModifySuspendCount(Thread* self, int delta, bool for_debugger) { in ModifySuspendCount()
566 void Thread::RunCheckpointFunction() { in RunCheckpointFunction()
573 bool Thread::RequestCheckpoint(Closure* function) { in RequestCheckpoint()
586 void Thread::FullSuspendCheck() { in FullSuspendCheck()
597 Thread* Thread::SuspendForDebugger(jobject peer, bool request_suspension, bool* timed_out) { in SuspendForDebugger()
604 Thread* thread; in SuspendForDebugger()
606 ScopedObjectAccess soa(Thread::Current()); in SuspendForDebugger()
607 Thread* self = soa.Self(); in SuspendForDebugger()
609 thread = Thread::FromManagedThread(soa, peer); in SuspendForDebugger()
655 BaseMutex* held_mutex = Thread::Current()->GetHeldMutex(static_cast<LockLevel>(i)); in SuspendForDebugger()
679 void Thread::DumpState(std::ostream& os, const Thread* thread, pid_t tid) { in DumpState()
683 Thread* self = Thread::Current(); in DumpState()
774 void Thread::DumpState(std::ostream& os) const { in DumpState()
775 Thread::DumpState(os, this, GetTid()); in DumpState()
779 StackDumpVisitor(std::ostream& os, Thread* thread, Context* context, bool can_allocate) in StackDumpVisitor()
844 const Thread* thread;
853 static bool ShouldShowNativeStack(const Thread* thread) in ShouldShowNativeStack()
875 void Thread::DumpStack(std::ostream& os) const { in DumpStack()
881 if (this == Thread::Current() || IsSuspended() || dump_for_abort) { in DumpStack()
888 …StackDumpVisitor dumper(os, const_cast<Thread*>(this), context.get(), !throwing_OutOfMemoryError_); in DumpStack()
895 void Thread::ThreadExitCallback(void* arg) { in ThreadExitCallback()
896 Thread* self = reinterpret_cast<Thread*>(arg); in ThreadExitCallback()
900 CHECK_PTHREAD_CALL(pthread_setspecific, (Thread::pthread_key_self_, self), "reattach self"); in ThreadExitCallback()
907 void Thread::Startup() { in Startup()
923 …CHECK_PTHREAD_CALL(pthread_key_create, (&Thread::pthread_key_self_, Thread::ThreadExitCallback), "… in Startup()
931 void Thread::FinishStartup() { in FinishStartup()
936 ScopedObjectAccess soa(Thread::Current()); in FinishStartup()
937 Thread::Current()->CreatePeer("main", false, runtime->GetMainThreadGroup()); in FinishStartup()
942 void Thread::Shutdown() { in Shutdown()
945 CHECK_PTHREAD_CALL(pthread_key_delete, (Thread::pthread_key_self_), "self key"); in Shutdown()
946 MutexLock mu(Thread::Current(), *Locks::thread_suspend_count_lock_); in Shutdown()
953 Thread::Thread(bool daemon) in Thread() function in art::Thread
991 CHECK_EQ((sizeof(Thread) % 4), 0U) << sizeof(Thread); in Thread()
997 bool Thread::IsStillStarting() const { in IsStillStarting()
1007 void Thread::AssertNoPendingException() const { in AssertNoPendingException()
1009 ScopedObjectAccess soa(Thread::Current()); in AssertNoPendingException()
1016 Thread* self = reinterpret_cast<Thread*>(arg); in MonitorExitVisitor()
1022 << *Thread::Current() << " which is detaching"; in MonitorExitVisitor()
1027 void Thread::Destroy() { in Destroy()
1028 Thread* self = this; in Destroy()
1029 DCHECK_EQ(self, Thread::Current()); in Destroy()
1058 Thread::~Thread() { in ~Thread()
1088 void Thread::HandleUncaughtExceptions(ScopedObjectAccess& soa) { in HandleUncaughtExceptions()
1117 void Thread::RemoveFromThreadGroup(ScopedObjectAccess& soa) { in RemoveFromThreadGroup()
1130 size_t Thread::NumSirtReferences() { in NumSirtReferences()
1138 bool Thread::SirtContains(jobject obj) const { in SirtContains()
1149 void Thread::SirtVisitRoots(RootVisitor* visitor, void* arg) { in SirtVisitRoots()
1161 mirror::Object* Thread::DecodeJObject(jobject obj) const { in DecodeJObject()
1187 ReaderMutexLock mu(const_cast<Thread*>(this), vm->globals_lock); in DecodeJObject()
1191 result = Runtime::Current()->GetJavaVM()->DecodeWeakGlobal(const_cast<Thread*>(this), ref); in DecodeJObject()
1209 bool Thread::Interrupted() { in Interrupted()
1210 MutexLock mu(Thread::Current(), *wait_mutex_); in Interrupted()
1217 bool Thread::IsInterrupted() { in IsInterrupted()
1218 MutexLock mu(Thread::Current(), *wait_mutex_); in IsInterrupted()
1222 void Thread::Interrupt() { in Interrupt()
1223 Thread* self = Thread::Current(); in Interrupt()
1232 void Thread::Notify() { in Notify()
1233 Thread* self = Thread::Current(); in Notify()
1238 void Thread::NotifyLocked(Thread* self) { in NotifyLocked()
1246 explicit CountStackDepthVisitor(Thread* thread)
1286 explicit BuildInternalStackTraceVisitor(Thread* self, Thread* thread, int skip_depth) in BuildInternalStackTraceVisitor()
1345 Thread* const self_;
1356 jobject Thread::CreateInternalStackTrace(const ScopedObjectAccessUnchecked& soa) const { in CreateInternalStackTrace()
1358 CountStackDepthVisitor count_visitor(const_cast<Thread*>(this)); in CreateInternalStackTrace()
1364 BuildInternalStackTraceVisitor build_trace_visitor(soa.Self(), const_cast<Thread*>(this), in CreateInternalStackTrace()
1379 jobjectArray Thread::InternalStackTraceToStackTraceElementArray(JNIEnv* env, jobject internal, in InternalStackTraceToStackTraceElementArray()
1468 void Thread::ThrowNewExceptionF(const ThrowLocation& throw_location, in ThrowNewExceptionF()
1477 void Thread::ThrowNewExceptionV(const ThrowLocation& throw_location, in ThrowNewExceptionV()
1485 void Thread::ThrowNewException(const ThrowLocation& throw_location, const char* exception_class_des… in ThrowNewException()
1491 void Thread::ThrowNewWrappedException(const ThrowLocation& throw_location, in ThrowNewWrappedException()
1494 DCHECK_EQ(this, Thread::Current()); in ThrowNewWrappedException()
1583 void Thread::ThrowOutOfMemoryError(const char* msg) { in ThrowOutOfMemoryError()
1597 Thread* Thread::CurrentFromGdb() { in CurrentFromGdb()
1598 return Thread::Current(); in CurrentFromGdb()
1601 void Thread::DumpFromGdb() const { in DumpFromGdb()
1704 void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset, size_t size_of_pointers) { in DumpThreadOffset()
1708 if (offset == static_cast<uint32_t>(OFFSETOF_VOLATILE_MEMBER(Thread, x))) { \ in DumpThreadOffset()
1730 uint32_t expected_offset = OFFSETOF_MEMBER(Thread, interpreter_entrypoints_); in DumpThreadOffset()
1745 CatchBlockStackVisitor(Thread* self, const ThrowLocation& throw_location, in CatchBlockStackVisitor()
1897 Thread* const self_;
1924 void Thread::QuickDeliverException() { in QuickDeliverException()
1949 Context* Thread::GetLongJumpContext() { in GetLongJumpContext()
1961 CurrentMethodVisitor(Thread* thread, Context* context) in CurrentMethodVisitor()
1982 mirror::ArtMethod* Thread::GetCurrentMethod(uint32_t* dex_pc) const { in GetCurrentMethod()
1983 CurrentMethodVisitor visitor(const_cast<Thread*>(this), NULL); in GetCurrentMethod()
1991 ThrowLocation Thread::GetCurrentLocationForThrow() { in GetCurrentLocationForThrow()
1999 bool Thread::HoldsLock(mirror::Object* object) { in HoldsLock()
2010 ReferenceMapVisitor(Thread* thread, Context* context, const RootVisitor& visitor) in ReferenceMapVisitor()
2153 void Thread::VerifyRoots(VerifyRootVisitor* visitor, void* arg) { in VerifyRoots()
2194 void Thread::VisitRoots(RootVisitor* visitor, void* arg) { in VisitRoots()
2232 void Thread::VerifyStackImpl() { in VerifyStackImpl()
2240 void Thread::SetStackEndForStackOverflow() { in SetStackEndForStackOverflow()
2253 std::ostream& operator<<(std::ostream& os, const Thread& thread) { in operator <<()