Lines Matching defs:thread
35 // Suspend thread to build stack trace.
39 Thread* thread;
41 // Take suspend thread lock to avoid races with threads trying to suspend this one.
43 thread = thread_list->SuspendThreadByPeer(peer, true, false, &timed_out);
45 if (thread != nullptr) {
48 trace = thread->CreateInternalStackTrace<false>(soa);
50 // Restart suspended thread.
51 thread_list->Resume(thread, false);
54 LOG(ERROR) << "Trying to get thread's stack failed as the thread failed to suspend within a "
71 Thread::InternalStackTraceToStackTraceElementArray(soa, trace, javaSteArray, &depth);
81 // The caller is an attached native thread.
90 ClosestUserClassLoaderVisitor(Thread* thread, mirror::Object* bootstrap, mirror::Object* system)
91 : StackVisitor(thread, NULL), bootstrap(bootstrap), system(system), class_loader(NULL) {}
122 // The caller is an attached native thread.
134 return Thread::InternalStackTraceToStackTraceElementArray(soa, trace);
138 NATIVE_METHOD(VMStack, fillStackTraceElements, "!(Ljava/lang/Thread;[Ljava/lang/StackTraceElement;)I"),
142 NATIVE_METHOD(VMStack, getThreadStackTrace, "!(Ljava/lang/Thread;)[Ljava/lang/StackTraceElement;"),