Home
last modified time | relevance | path

Searched refs:thread_name (Results 1 – 19 of 19) sorted by relevance

/art/runtime/
Dmonitor_android.cc62 std::string thread_name; in LogContentionEvent() local
63 self->GetThreadName(thread_name); in LogContentionEvent()
64 ctx << thread_name; in LogContentionEvent()
Druntime_linux.cc39 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalLinux() local
41 << "* Process " << getpid() << " thread " << tid << " \"" << thread_name in HandleUnexpectedSignalLinux()
Dthread.cc815 std::string thread_name; in CreateNativeThread() local
817 thread_name = java_name->ToModifiedUtf8(); in CreateNativeThread()
819 thread_name = "(Unnamed)"; in CreateNativeThread()
822 VLOG(threads) << "Creating native thread for " << thread_name; in CreateNativeThread()
963 Thread* Thread::Attach(const char* thread_name, bool as_daemon, PeerAction peer_action) { in Attach() argument
968 ((thread_name != nullptr) ? thread_name : "(Unnamed)"); in Attach()
977 ((thread_name != nullptr) ? thread_name : "(Unnamed)"); in Attach()
1004 if (thread_name != nullptr) { in Attach()
1005 VLOG(threads) << "Attaching thread " << thread_name; in Attach()
1021 Thread* Thread::Attach(const char* thread_name, in Attach() argument
[all …]
Dinstrumentation.cc340 std::string thread_name; in InstrumentationInstallStack() local
341 GetThread()->GetThreadName(thread_name); in InstrumentationInstallStack()
347 LOG(FATAL) << "While walking " << thread_name << " found unexpected non-runtime method" in InstrumentationInstallStack()
395 std::string thread_name; in InstrumentationInstallStack() local
396 thread->GetThreadName(thread_name); in InstrumentationInstallStack()
397 LOG(INFO) << "Installing exit stubs in " << thread_name; in InstrumentationInstallStack()
507 std::string thread_name; in InstrumentationRestoreStack() local
508 thread->GetThreadName(thread_name); in InstrumentationRestoreStack()
509 LOG(INFO) << "Removing exit stubs in " << thread_name; in InstrumentationRestoreStack()
Druntime_callbacks_test.cc162 ScopedLocalRef<jobject> thread_name(env, in TEST_F() local
164 ASSERT_TRUE(thread_name.get() != nullptr); in TEST_F()
173 thread_name.get(), in TEST_F()
Dtrace.cc970 std::string thread_name; in LogMethodTraceEvent() local
971 thread->GetThreadName(thread_name); in LogMethodTraceEvent()
976 Append2LE(buf2 + 5, static_cast<uint16_t>(thread_name.length())); in LogMethodTraceEvent()
978 WriteToBuf(reinterpret_cast<const uint8_t*>(thread_name.c_str()), thread_name.length()); in LogMethodTraceEvent()
Druntime_common.cc393 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalCommonDump() local
406 << "Thread: " << tid << " \"" << thread_name << "\"" << std::endl in HandleUnexpectedSignalCommonDump()
Dthread.h181 static Thread* Attach(const char* thread_name, bool as_daemon, jobject thread_group,
184 static Thread* Attach(const char* thread_name, bool as_daemon, jobject thread_peer);
1303 static Thread* Attach(const char* thread_name,
1314 jobject thread_name,
Dthread_list.cc1456 std::string thread_name; in Unregister() local
1457 self->GetThreadName(thread_name); in Unregister()
1460 LOG(ERROR) << "Request to unregister unattached thread " << thread_name << "\n" << os.str(); in Unregister()
Druntime.h247 bool AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group,
Druntime.cc2034 bool Runtime::AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group, in AttachCurrentThread() argument
2037 Thread* self = Thread::Attach(thread_name, as_daemon, thread_group, create_peer); in AttachCurrentThread()
/art/libartbase/base/
Dutils.cc230 void SetThreadName(const char* thread_name) { in SetThreadName() argument
233 const char* s = thread_name; in SetThreadName()
242 int len = s - thread_name; in SetThreadName()
244 s = thread_name; in SetThreadName()
246 s = thread_name + len - 15; in SetThreadName()
258 pthread_setname_np(thread_name); in SetThreadName()
Dutils.h57 void SetThreadName(const char* thread_name);
/art/test/931-agent-thread/
Dagent_thread.cc95 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("Agent Thread")); in Java_art_Test931_testAgentThread() local
96 if (thread_name.get() == nullptr) { in Java_art_Test931_testAgentThread()
133 thread_name.get(), in Java_art_Test931_testAgentThread()
/art/test/912-classes/
Dclasses.cc305 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassLoadCallback() local
306 if (thread_name == "") { in ClassLoadCallback()
309 if (thread_name_filter_ != "" && thread_name_filter_ != thread_name) { in ClassLoadCallback()
316 thread_name.c_str())); in ClassLoadCallback()
327 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassPrepareCallback() local
328 if (thread_name == "") { in ClassPrepareCallback()
331 if (thread_name_filter_ != "" && thread_name_filter_ != thread_name) { in ClassPrepareCallback()
339 thread_name.c_str(), in ClassPrepareCallback()
391 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF(name_str.c_str())); in RunEventThread() local
392 CHECK(thread_name.get() != nullptr); in RunEventThread()
[all …]
/art/test/1919-vminit-thread-start-timing/
Dvminit.cc83 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("JVMTI_THREAD-Test1919")); in CreateAgentThread() local
84 CHECK(thread_name.get() != nullptr); in CreateAgentThread()
95 env->CallNonvirtualVoidMethod(thread.get(), thread_klass.get(), initID, thread_name.get()); in CreateAgentThread()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc232 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("Agent Thread")); in CbVmInit() local
233 if (thread_name.get() == nullptr) { in CbVmInit()
255 thread_name.get()); in CbVmInit()
/art/runtime/jdwp/
Djdwp_event.cc834 std::string thread_name; in LogMatchingEventsAndThread() local
835 JdwpError error = Dbg::GetThreadName(thread_id, &thread_name); in LogMatchingEventsAndThread()
837 thread_name = "<unknown>"; in LogMatchingEventsAndThread()
839 VLOG(jdwp) << StringPrintf(" thread=%#" PRIx64, thread_id) << " " << thread_name; in LogMatchingEventsAndThread()
/art/runtime/jni/
Djava_vm_ext.cc446 const char* thread_name = nullptr; in AttachCurrentThreadInternal() local
455 thread_name = args->name; in AttachCurrentThreadInternal()
459 if (!runtime->AttachCurrentThread(thread_name, as_daemon, thread_group, in AttachCurrentThreadInternal()