Lines Matching refs:Thread

79 bool Thread::is_started_ = false;
80 pthread_key_t Thread::pthread_key_self_;
81 ConditionVariable* Thread::resume_cond_ = nullptr;
82 const size_t Thread::kStackOverflowImplicitCheckSize = GetStackOverflowReservedBytes(kRuntimeISA);
86 void Thread::InitCardTable() { in InitCardTable()
97 void Thread::InitTlsEntryPoints() { in InitTlsEntryPoints()
109 void Thread::InitStringEntryPoints() { in InitStringEntryPoints()
146 void Thread::ResetQuickAllocEntryPointsForThread() { in ResetQuickAllocEntryPointsForThread()
194 void Thread::PushAndClearDeoptimizationReturnValue() { in PushAndClearDeoptimizationReturnValue()
203 JValue Thread::PopDeoptimizationReturnValue() { in PopDeoptimizationReturnValue()
212 void Thread::PushStackedShadowFrame(ShadowFrame* sf, StackedShadowFrameType type) { in PushStackedShadowFrame()
218 ShadowFrame* Thread::PopStackedShadowFrame(StackedShadowFrameType type) { in PopStackedShadowFrame()
228 void Thread::InitTid() { in InitTid()
232 void Thread::InitAfterFork() { in InitAfterFork()
238 void* Thread::CreateCallback(void* arg) { in CreateCallback()
239 Thread* self = reinterpret_cast<Thread*>(arg); in CreateCallback()
287 Thread* Thread::FromManagedThread(const ScopedObjectAccessAlreadyRunnable& soa, in FromManagedThread()
290 Thread* result = reinterpret_cast<Thread*>(static_cast<uintptr_t>(f->GetLong(thread_peer))); in FromManagedThread()
302 Thread* Thread::FromManagedThread(const ScopedObjectAccessAlreadyRunnable& soa, in FromManagedThread()
330 stack_size += Thread::kStackOverflowImplicitCheckSize + in FixStackSize()
354 void Thread::InstallImplicitProtection() { in InstallImplicitProtection()
388 void Thread::CreateNativeThread(JNIEnv* env, jobject java_peer, size_t stack_size, bool is_daemon) { in CreateNativeThread()
390 Thread* self = static_cast<JNIEnvExt*>(env)->self; in CreateNativeThread()
409 Thread* child_thread = new Thread(is_daemon); in CreateNativeThread()
435 Thread::CreateCallback, in CreateNativeThread()
471 bool Thread::Init(ThreadList* thread_list, JavaVMExt* java_vm, JNIEnvExt* jni_env_ext) { in Init()
476 CHECK(Thread::Current() == nullptr); in Init()
493 CHECK_PTHREAD_CALL(pthread_setspecific, (Thread::pthread_key_self_, this), "attach self"); in Init()
494 DCHECK_EQ(Thread::Current(), this); in Init()
513 Thread* Thread::Attach(const char* thread_name, bool as_daemon, jobject thread_group, in Attach()
520 Thread* self; in Attach()
528 self = new Thread(as_daemon); in Attach()
555 LOG(WARNING) << *Thread::Current() << " attached without supplying a name"; in Attach()
567 void Thread::CreatePeer(const char* name, bool as_daemon, jobject thread_group) { in CreatePeer()
599 Thread* self = this; in CreatePeer()
600 DCHECK_EQ(self, Thread::Current()); in CreatePeer()
626 void Thread::InitPeer(ScopedObjectAccess& soa, jboolean thread_is_daemon, jobject thread_group, in InitPeer()
638 void Thread::SetThreadName(const char* name) { in SetThreadName()
644 bool Thread::InitStackHwm() { in InitStackHwm()
698 void Thread::ShortDump(std::ostream& os) const { in ShortDump()
712 void Thread::Dump(std::ostream& os) const { in Dump()
717 mirror::String* Thread::GetThreadName(const ScopedObjectAccessAlreadyRunnable& soa) const { in GetThreadName()
723 void Thread::GetThreadName(std::string& name) const { in GetThreadName()
727 uint64_t Thread::GetCpuMicroTime() const { in GetCpuMicroTime()
741 static void UnsafeLogFatalForSuspendCount(Thread* self, Thread* thread) NO_THREAD_SAFETY_ANALYSIS { in UnsafeLogFatalForSuspendCount()
761 void Thread::ModifySuspendCount(Thread* self, int delta, bool for_debugger) { in ModifySuspendCount()
789 void Thread::RunCheckpointFunction() { in RunCheckpointFunction()
819 bool Thread::RequestCheckpoint(Closure* function) { in RequestCheckpoint()
858 Closure* Thread::GetFlipFunction() { in GetFlipFunction()
871 void Thread::SetFlipFunction(Closure* function) { in SetFlipFunction()
877 void Thread::FullSuspendCheck() { in FullSuspendCheck()
890 void Thread::DumpState(std::ostream& os, const Thread* thread, pid_t tid) { in DumpState()
894 Thread* self = Thread::Current(); in DumpState()
903 Thread* this_thread = const_cast<Thread*>(thread); in DumpState()
1024 void Thread::DumpState(std::ostream& os) const { in DumpState()
1025 Thread::DumpState(os, this, GetTid()); in DumpState()
1029 StackDumpVisitor(std::ostream& os_in, Thread* thread_in, Context* context, bool can_allocate_in) in StackDumpVisitor()
1101 Locks::mutator_lock_->IsExclusiveHeld(Thread::Current())) { in DumpLockedObject()
1117 const Thread* thread;
1125 static bool ShouldShowNativeStack(const Thread* thread) in ShouldShowNativeStack()
1154 void Thread::DumpJavaStack(std::ostream& os) const { in DumpJavaStack()
1161 Thread* this_thread = const_cast<Thread*>(this); in DumpJavaStack()
1172 StackHandleScope<1> scope(Thread::Current()); in DumpJavaStack()
1177 const_cast<Thread*>(this)->ClearException(); in DumpJavaStack()
1182 StackDumpVisitor dumper(os, const_cast<Thread*>(this), context.get(), in DumpJavaStack()
1187 const_cast<Thread*>(this)->SetException(exc.Get()); in DumpJavaStack()
1191 void Thread::DumpStack(std::ostream& os) const { in DumpStack()
1196 bool safe_to_dump = (this == Thread::Current() || IsSuspended()); in DumpStack()
1214 void Thread::ThreadExitCallback(void* arg) { in ThreadExitCallback()
1215 Thread* self = reinterpret_cast<Thread*>(arg); in ThreadExitCallback()
1220 CHECK_PTHREAD_CALL(pthread_setspecific, (Thread::pthread_key_self_, self), "reattach self"); in ThreadExitCallback()
1227 void Thread::Startup() { in Startup()
1243 CHECK_PTHREAD_CALL(pthread_key_create, (&Thread::pthread_key_self_, Thread::ThreadExitCallback), in Startup()
1252 void Thread::FinishStartup() { in FinishStartup()
1257 ScopedObjectAccess soa(Thread::Current()); in FinishStartup()
1258 Thread::Current()->CreatePeer("main", false, runtime->GetMainThreadGroup()); in FinishStartup()
1263 void Thread::Shutdown() { in Shutdown()
1266 CHECK_PTHREAD_CALL(pthread_key_delete, (Thread::pthread_key_self_), "self key"); in Shutdown()
1267 MutexLock mu(Thread::Current(), *Locks::thread_suspend_count_lock_); in Shutdown()
1274 Thread::Thread(bool daemon) : tls32_(daemon), wait_monitor_(nullptr), interrupted_(false) { in Thread() function in art::Thread
1281 CHECK_EQ((sizeof(Thread) % 4), 0U) << sizeof(Thread); in Thread()
1295 bool Thread::IsStillStarting() const { in IsStillStarting()
1306 void Thread::AssertPendingException() const { in AssertPendingException()
1310 void Thread::AssertPendingOOMException() const { in AssertPendingOOMException()
1317 void Thread::AssertNoPendingException() const { in AssertNoPendingException()
1319 ScopedObjectAccess soa(Thread::Current()); in AssertNoPendingException()
1325 void Thread::AssertNoPendingExceptionForNewException(const char* msg) const { in AssertNoPendingExceptionForNewException()
1327 ScopedObjectAccess soa(Thread::Current()); in AssertNoPendingExceptionForNewException()
1336 explicit MonitorExitVisitor(Thread* self) : self_(self) { } in MonitorExitVisitor()
1345 << *Thread::Current() << " which is detaching"; in VisitRoot()
1351 Thread* const self_;
1354 void Thread::Destroy() { in Destroy()
1355 Thread* self = this; in Destroy()
1356 DCHECK_EQ(self, Thread::Current()); in Destroy()
1413 Thread::~Thread() { in ~Thread()
1457 void Thread::HandleUncaughtExceptions(ScopedObjectAccess& soa) { in HandleUncaughtExceptions()
1487 void Thread::RemoveFromThreadGroup(ScopedObjectAccess& soa) { in RemoveFromThreadGroup()
1502 size_t Thread::NumHandleReferences() { in NumHandleReferences()
1510 bool Thread::HandleScopeContains(jobject obj) const { in HandleScopeContains()
1522 void Thread::HandleScopeVisitRoots(RootVisitor* visitor, uint32_t thread_id) { in HandleScopeVisitRoots()
1534 mirror::Object* Thread::DecodeJObject(jobject obj) const { in DecodeJObject()
1560 result = tlsPtr_.jni_env->vm->DecodeGlobal(const_cast<Thread*>(this), ref); in DecodeJObject()
1563 result = tlsPtr_.jni_env->vm->DecodeWeakGlobal(const_cast<Thread*>(this), ref); in DecodeJObject()
1579 bool Thread::Interrupted() { in Interrupted()
1580 MutexLock mu(Thread::Current(), *wait_mutex_); in Interrupted()
1587 bool Thread::IsInterrupted() { in IsInterrupted()
1588 MutexLock mu(Thread::Current(), *wait_mutex_); in IsInterrupted()
1592 void Thread::Interrupt(Thread* self) { in Interrupt()
1601 void Thread::Notify() { in Notify()
1602 Thread* self = Thread::Current(); in Notify()
1607 void Thread::NotifyLocked(Thread* self) { in NotifyLocked()
1613 void Thread::SetClassLoaderOverride(jobject class_loader_override) { in SetClassLoaderOverride()
1622 explicit CountStackDepthVisitor(Thread* thread)
1663 explicit BuildInternalStackTraceVisitor(Thread* self, Thread* thread, int skip_depth) in BuildInternalStackTraceVisitor()
1719 Thread* const self_;
1731 jobject Thread::CreateInternalStackTrace(const ScopedObjectAccessAlreadyRunnable& soa) const { in CreateInternalStackTrace()
1733 CountStackDepthVisitor count_visitor(const_cast<Thread*>(this)); in CreateInternalStackTrace()
1740 const_cast<Thread*>(this), in CreateInternalStackTrace()
1757 template jobject Thread::CreateInternalStackTrace<false>(
1759 template jobject Thread::CreateInternalStackTrace<true>(
1762 bool Thread::IsExceptionThrownByCurrentMethod(mirror::Throwable* exception) const { in IsExceptionThrownByCurrentMethod()
1763 CountStackDepthVisitor count_visitor(const_cast<Thread*>(this)); in IsExceptionThrownByCurrentMethod()
1768 jobjectArray Thread::InternalStackTraceToStackTraceElementArray( in InternalStackTraceToStackTraceElementArray()
1853 void Thread::ThrowNewExceptionF(const char* exception_class_descriptor, const char* fmt, ...) { in ThrowNewExceptionF()
1860 void Thread::ThrowNewExceptionV(const char* exception_class_descriptor, in ThrowNewExceptionV()
1867 void Thread::ThrowNewException(const char* exception_class_descriptor, in ThrowNewException()
1874 static mirror::ClassLoader* GetCurrentClassLoader(Thread* self) in GetCurrentClassLoader()
1882 void Thread::ThrowNewWrappedException(const char* exception_class_descriptor, in ThrowNewWrappedException()
1884 DCHECK_EQ(this, Thread::Current()); in ThrowNewWrappedException()
1982 void Thread::ThrowOutOfMemoryError(const char* msg) { in ThrowOutOfMemoryError()
1995 Thread* Thread::CurrentFromGdb() { in CurrentFromGdb()
1996 return Thread::Current(); in CurrentFromGdb()
1999 void Thread::DumpFromGdb() const { in DumpFromGdb()
2012 template void Thread::DumpThreadOffset<4>(std::ostream& os, uint32_t offset);
2013 template void Thread::DumpThreadOffset<8>(std::ostream& os, uint32_t offset);
2016 void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset) { in DumpThreadOffset()
2175 void Thread::QuickDeliverException() { in QuickDeliverException()
2193 Context* Thread::GetLongJumpContext() { in GetLongJumpContext()
2207 CurrentMethodVisitor(Thread* thread, Context* context, bool abort_on_error) in CurrentMethodVisitor()
2233 ArtMethod* Thread::GetCurrentMethod(uint32_t* dex_pc, bool abort_on_error) const { in GetCurrentMethod()
2234 CurrentMethodVisitor visitor(const_cast<Thread*>(this), nullptr, abort_on_error); in GetCurrentMethod()
2242 bool Thread::HoldsLock(mirror::Object* object) const { in HoldsLock()
2253 ReferenceMapVisitor(Thread* thread, Context* context, RootVisitor& visitor) in ReferenceMapVisitor()
2428 void Thread::VisitRoots(RootVisitor* visitor) { in VisitRoots()
2487 void Thread::VerifyStackImpl() { in VerifyStackImpl()
2496 void Thread::SetStackEndForStackOverflow() { in SetStackEndForStackOverflow()
2517 void Thread::SetTlab(uint8_t* start, uint8_t* end) { in SetTlab()
2525 bool Thread::HasTlab() const { in HasTlab()
2535 std::ostream& operator<<(std::ostream& os, const Thread& thread) { in operator <<()
2540 void Thread::ProtectStack() { in ProtectStack()
2550 bool Thread::UnprotectStack() { in UnprotectStack()
2556 void Thread::ActivateSingleStepControl(SingleStepControl* ssc) { in ActivateSingleStepControl()
2563 void Thread::DeactivateSingleStepControl() { in DeactivateSingleStepControl()
2571 void Thread::SetDebugInvokeReq(DebugInvokeReq* req) { in SetDebugInvokeReq()
2574 CHECK(Thread::Current() != this) << "Debug invoke can't be dispatched by the thread itself"; in SetDebugInvokeReq()
2579 void Thread::ClearDebugInvokeReq() { in ClearDebugInvokeReq()
2581 CHECK(Thread::Current() == this) << "Debug invoke must be finished by the thread itself"; in ClearDebugInvokeReq()
2587 void Thread::PushVerifier(verifier::MethodVerifier* verifier) { in PushVerifier()
2592 void Thread::PopVerifier(verifier::MethodVerifier* verifier) { in PopVerifier()