Lines Matching refs:Thread
76 bool Thread::is_started_ = false;
77 pthread_key_t Thread::pthread_key_self_;
78 ConditionVariable* Thread::resume_cond_ = nullptr;
79 const size_t Thread::kStackOverflowImplicitCheckSize = GetStackOverflowReservedBytes(kRuntimeISA);
83 void Thread::InitCardTable() { in InitCardTable()
94 void Thread::InitTlsEntryPoints() { in InitTlsEntryPoints()
106 void Thread::ResetQuickAllocEntryPointsForThread() { in ResetQuickAllocEntryPointsForThread()
110 void Thread::SetDeoptimizationShadowFrame(ShadowFrame* sf) { in SetDeoptimizationShadowFrame()
114 void Thread::SetDeoptimizationReturnValue(const JValue& ret_val) { in SetDeoptimizationReturnValue()
118 ShadowFrame* Thread::GetAndClearDeoptimizationShadowFrame(JValue* ret_val) { in GetAndClearDeoptimizationShadowFrame()
125 void Thread::SetShadowFrameUnderConstruction(ShadowFrame* sf) { in SetShadowFrameUnderConstruction()
130 void Thread::ClearShadowFrameUnderConstruction() { in ClearShadowFrameUnderConstruction()
135 void Thread::InitTid() { in InitTid()
139 void Thread::InitAfterFork() { in InitAfterFork()
145 void* Thread::CreateCallback(void* arg) { in CreateCallback()
146 Thread* self = reinterpret_cast<Thread*>(arg); in CreateCallback()
187 Thread* Thread::FromManagedThread(const ScopedObjectAccessAlreadyRunnable& soa, in FromManagedThread()
190 Thread* result = reinterpret_cast<Thread*>(static_cast<uintptr_t>(f->GetLong(thread_peer))); in FromManagedThread()
202 Thread* Thread::FromManagedThread(const ScopedObjectAccessAlreadyRunnable& soa, in FromManagedThread()
230 stack_size += Thread::kStackOverflowImplicitCheckSize + in FixStackSize()
254 void Thread::InstallImplicitProtection() { in InstallImplicitProtection()
288 void Thread::CreateNativeThread(JNIEnv* env, jobject java_peer, size_t stack_size, bool is_daemon) { in CreateNativeThread()
290 Thread* self = static_cast<JNIEnvExt*>(env)->self; in CreateNativeThread()
309 Thread* child_thread = new Thread(is_daemon); in CreateNativeThread()
324 …int pthread_create_result = pthread_create(&new_pthread, &attr, Thread::CreateCallback, child_thre… in CreateNativeThread()
349 void Thread::Init(ThreadList* thread_list, JavaVMExt* java_vm) { in Init()
354 CHECK(Thread::Current() == nullptr); in Init()
365 CHECK_PTHREAD_CALL(pthread_setspecific, (Thread::pthread_key_self_, this), "attach self"); in Init()
366 DCHECK_EQ(Thread::Current(), this); in Init()
375 Thread* Thread::Attach(const char* thread_name, bool as_daemon, jobject thread_group, in Attach()
377 Thread* self; in Attach()
390 self = new Thread(as_daemon); in Attach()
411 LOG(WARNING) << *Thread::Current() << " attached without supplying a name"; in Attach()
423 void Thread::CreatePeer(const char* name, bool as_daemon, jobject thread_group) { in CreatePeer()
454 Thread* self = this; in CreatePeer()
455 DCHECK_EQ(self, Thread::Current()); in CreatePeer()
481 void Thread::InitPeer(ScopedObjectAccess& soa, jboolean thread_is_daemon, jobject thread_group, in InitPeer()
493 void Thread::SetThreadName(const char* name) { in SetThreadName()
499 void Thread::InitStackHwm() { in InitStackHwm()
580 void Thread::ShortDump(std::ostream& os) const { in ShortDump()
594 void Thread::Dump(std::ostream& os) const { in Dump()
599 mirror::String* Thread::GetThreadName(const ScopedObjectAccessAlreadyRunnable& soa) const { in GetThreadName()
604 void Thread::GetThreadName(std::string& name) const { in GetThreadName()
608 uint64_t Thread::GetCpuMicroTime() const { in GetCpuMicroTime()
622 static void UnsafeLogFatalForSuspendCount(Thread* self, Thread* thread) NO_THREAD_SAFETY_ANALYSIS { in UnsafeLogFatalForSuspendCount()
642 void Thread::ModifySuspendCount(Thread* self, int delta, bool for_debugger) { in ModifySuspendCount()
670 void Thread::RunCheckpointFunction() { in RunCheckpointFunction()
700 bool Thread::RequestCheckpoint(Closure* function) { in RequestCheckpoint()
740 void Thread::FullSuspendCheck() { in FullSuspendCheck()
751 void Thread::DumpState(std::ostream& os, const Thread* thread, pid_t tid) { in DumpState()
755 Thread* self = Thread::Current(); in DumpState()
871 void Thread::DumpState(std::ostream& os) const { in DumpState()
872 Thread::DumpState(os, this, GetTid()); in DumpState()
876 StackDumpVisitor(std::ostream& os, Thread* thread, Context* context, bool can_allocate) in StackDumpVisitor()
942 Locks::mutator_lock_->IsExclusiveHeld(Thread::Current())) { in DumpLockedObject()
955 const Thread* thread;
963 static bool ShouldShowNativeStack(const Thread* thread) in ShouldShowNativeStack()
992 void Thread::DumpJavaStack(std::ostream& os) const { in DumpJavaStack()
996 StackHandleScope<3> scope(const_cast<Thread*>(this)); in DumpJavaStack()
1008 const_cast<Thread*>(this)->ClearException(); in DumpJavaStack()
1013 StackDumpVisitor dumper(os, const_cast<Thread*>(this), context.get(), in DumpJavaStack()
1021 const_cast<Thread*>(this)->SetException(exc_location, exc.Get()); in DumpJavaStack()
1025 void Thread::DumpStack(std::ostream& os) const { in DumpStack()
1030 bool safe_to_dump = (this == Thread::Current() || IsSuspended()); in DumpStack()
1048 void Thread::ThreadExitCallback(void* arg) { in ThreadExitCallback()
1049 Thread* self = reinterpret_cast<Thread*>(arg); in ThreadExitCallback()
1054 CHECK_PTHREAD_CALL(pthread_setspecific, (Thread::pthread_key_self_, self), "reattach self"); in ThreadExitCallback()
1061 void Thread::Startup() { in Startup()
1077 …CHECK_PTHREAD_CALL(pthread_key_create, (&Thread::pthread_key_self_, Thread::ThreadExitCallback), "… in Startup()
1085 void Thread::FinishStartup() { in FinishStartup()
1090 ScopedObjectAccess soa(Thread::Current()); in FinishStartup()
1091 Thread::Current()->CreatePeer("main", false, runtime->GetMainThreadGroup()); in FinishStartup()
1096 void Thread::Shutdown() { in Shutdown()
1099 CHECK_PTHREAD_CALL(pthread_key_delete, (Thread::pthread_key_self_), "self key"); in Shutdown()
1100 MutexLock mu(Thread::Current(), *Locks::thread_suspend_count_lock_); in Shutdown()
1107 Thread::Thread(bool daemon) : tls32_(daemon), wait_monitor_(nullptr), interrupted_(false) { in Thread() function in art::Thread
1116 CHECK_EQ((sizeof(Thread) % 4), 0U) << sizeof(Thread); in Thread()
1128 bool Thread::IsStillStarting() const { in IsStillStarting()
1139 void Thread::AssertNoPendingException() const { in AssertNoPendingException()
1141 ScopedObjectAccess soa(Thread::Current()); in AssertNoPendingException()
1147 void Thread::AssertNoPendingExceptionForNewException(const char* msg) const { in AssertNoPendingExceptionForNewException()
1149 ScopedObjectAccess soa(Thread::Current()); in AssertNoPendingExceptionForNewException()
1158 Thread* self = reinterpret_cast<Thread*>(arg); in MonitorExitVisitor()
1164 << *Thread::Current() << " which is detaching"; in MonitorExitVisitor()
1169 void Thread::Destroy() { in Destroy()
1170 Thread* self = this; in Destroy()
1171 DCHECK_EQ(self, Thread::Current()); in Destroy()
1208 Thread::~Thread() { in ~Thread()
1253 void Thread::HandleUncaughtExceptions(ScopedObjectAccess& soa) { in HandleUncaughtExceptions()
1283 void Thread::RemoveFromThreadGroup(ScopedObjectAccess& soa) { in RemoveFromThreadGroup()
1298 size_t Thread::NumHandleReferences() { in NumHandleReferences()
1306 bool Thread::HandleScopeContains(jobject obj) const { in HandleScopeContains()
1318 void Thread::HandleScopeVisitRoots(RootCallback* visitor, void* arg, uint32_t thread_id) { in HandleScopeVisitRoots()
1334 mirror::Object* Thread::DecodeJObject(jobject obj) const { in DecodeJObject()
1359 result = vm->globals.SynchronizedGet(const_cast<Thread*>(this), &vm->globals_lock, ref); in DecodeJObject()
1362 result = Runtime::Current()->GetJavaVM()->DecodeWeakGlobal(const_cast<Thread*>(this), ref); in DecodeJObject()
1376 bool Thread::Interrupted() { in Interrupted()
1377 MutexLock mu(Thread::Current(), *wait_mutex_); in Interrupted()
1384 bool Thread::IsInterrupted() { in IsInterrupted()
1385 MutexLock mu(Thread::Current(), *wait_mutex_); in IsInterrupted()
1389 void Thread::Interrupt(Thread* self) { in Interrupt()
1398 void Thread::Notify() { in Notify()
1399 Thread* self = Thread::Current(); in Notify()
1404 void Thread::NotifyLocked(Thread* self) { in NotifyLocked()
1412 explicit CountStackDepthVisitor(Thread* thread)
1453 explicit BuildInternalStackTraceVisitor(Thread* self, Thread* thread, int skip_depth) in BuildInternalStackTraceVisitor()
1514 Thread* const self_;
1526 jobject Thread::CreateInternalStackTrace(const ScopedObjectAccessAlreadyRunnable& soa) const { in CreateInternalStackTrace()
1528 CountStackDepthVisitor count_visitor(const_cast<Thread*>(this)); in CreateInternalStackTrace()
1535 const_cast<Thread*>(this), in CreateInternalStackTrace()
1549 template jobject Thread::CreateInternalStackTrace<false>(
1551 template jobject Thread::CreateInternalStackTrace<true>(
1554 jobjectArray Thread::InternalStackTraceToStackTraceElementArray( in InternalStackTraceToStackTraceElementArray()
1637 void Thread::ThrowNewExceptionF(const ThrowLocation& throw_location, in ThrowNewExceptionF()
1646 void Thread::ThrowNewExceptionV(const ThrowLocation& throw_location, in ThrowNewExceptionV()
1654 void Thread::ThrowNewException(const ThrowLocation& throw_location, const char* exception_class_des… in ThrowNewException()
1661 void Thread::ThrowNewWrappedException(const ThrowLocation& throw_location, in ThrowNewWrappedException()
1664 DCHECK_EQ(this, Thread::Current()); in ThrowNewWrappedException()
1779 void Thread::ThrowOutOfMemoryError(const char* msg) { in ThrowOutOfMemoryError()
1793 Thread* Thread::CurrentFromGdb() { in CurrentFromGdb()
1794 return Thread::Current(); in CurrentFromGdb()
1797 void Thread::DumpFromGdb() const { in DumpFromGdb()
1810 template void Thread::DumpThreadOffset<4>(std::ostream& os, uint32_t offset);
1811 template void Thread::DumpThreadOffset<8>(std::ostream& os, uint32_t offset);
1814 void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset) { in DumpThreadOffset()
1951 void Thread::QuickDeliverException() { in QuickDeliverException()
1972 Context* Thread::GetLongJumpContext() { in GetLongJumpContext()
1986 CurrentMethodVisitor(Thread* thread, Context* context, bool abort_on_error) in CurrentMethodVisitor()
2009 mirror::ArtMethod* Thread::GetCurrentMethod(uint32_t* dex_pc, bool abort_on_error) const { in GetCurrentMethod()
2010 CurrentMethodVisitor visitor(const_cast<Thread*>(this), nullptr, abort_on_error); in GetCurrentMethod()
2018 ThrowLocation Thread::GetCurrentLocationForThrow() { in GetCurrentLocationForThrow()
2026 bool Thread::HoldsLock(mirror::Object* object) const { in HoldsLock()
2037 ReferenceMapVisitor(Thread* thread, Context* context, const RootVisitor& visitor) in ReferenceMapVisitor()
2184 void Thread::SetClassLoaderOverride(mirror::ClassLoader* class_loader_override) { in SetClassLoaderOverride()
2189 void Thread::VisitRoots(RootCallback* visitor, void* arg) { in VisitRoots()
2253 void Thread::VerifyStackImpl() { in VerifyStackImpl()
2261 void Thread::SetStackEndForStackOverflow() { in SetStackEndForStackOverflow()
2282 void Thread::SetTlab(byte* start, byte* end) { in SetTlab()
2290 bool Thread::HasTlab() const { in HasTlab()
2300 std::ostream& operator<<(std::ostream& os, const Thread& thread) { in operator <<()
2305 void Thread::ProtectStack() { in ProtectStack()
2315 bool Thread::UnprotectStack() { in UnprotectStack()