Home
last modified time | relevance | path

Searched refs:thread_name (Results 1 – 20 of 20) 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.cc826 std::string thread_name; in CreateNativeThread() local
828 thread_name = java_name->ToModifiedUtf8(); in CreateNativeThread()
830 thread_name = "(Unnamed)"; in CreateNativeThread()
833 VLOG(threads) << "Creating native thread for " << thread_name; in CreateNativeThread()
975 Thread* Thread::Attach(const char* thread_name, bool as_daemon, PeerAction peer_action) { in Attach() argument
980 ((thread_name != nullptr) ? thread_name : "(Unnamed)"); in Attach()
989 ((thread_name != nullptr) ? thread_name : "(Unnamed)"); in Attach()
1016 if (thread_name != nullptr) { in Attach()
1017 VLOG(threads) << "Attaching thread " << thread_name; in Attach()
1033 Thread* Thread::Attach(const char* thread_name, in Attach() argument
[all …]
Dinstrumentation.cc373 std::string thread_name; in InstrumentationInstallStack() local
374 GetThread()->GetThreadName(thread_name); in InstrumentationInstallStack()
380 LOG(FATAL) << "While walking " << thread_name << " found unexpected non-runtime method" in InstrumentationInstallStack()
418 std::string thread_name; in InstrumentationInstallStack() local
419 thread->GetThreadName(thread_name); in InstrumentationInstallStack()
420 LOG(INFO) << "Installing exit stubs in " << thread_name; in InstrumentationInstallStack()
530 std::string thread_name; in InstrumentationRestoreStack() local
531 thread->GetThreadName(thread_name); in InstrumentationRestoreStack()
532 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.cc975 std::string thread_name; in LogMethodTraceEvent() local
976 thread->GetThreadName(thread_name); in LogMethodTraceEvent()
981 Append2LE(buf2 + 5, static_cast<uint16_t>(thread_name.length())); in LogMethodTraceEvent()
983 WriteToBuf(reinterpret_cast<const uint8_t*>(thread_name.c_str()), thread_name.length()); in LogMethodTraceEvent()
Druntime_common.cc398 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalCommonDump() local
411 << "Thread: " << tid << " \"" << thread_name << "\"" << std::endl in HandleUnexpectedSignalCommonDump()
Dthread.h182 static Thread* Attach(const char* thread_name, bool as_daemon, jobject thread_group,
185 static Thread* Attach(const char* thread_name, bool as_daemon, jobject thread_peer);
1355 static Thread* Attach(const char* thread_name,
1366 jobject thread_name,
Dthread_list.cc1319 std::string thread_name; in Unregister() local
1320 self->GetThreadName(thread_name); in Unregister()
1323 LOG(ERROR) << "Request to unregister unattached thread " << thread_name << "\n" << os.str(); in Unregister()
Druntime.h263 bool AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group,
Druntime.cc2111 bool Runtime::AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group, in AttachCurrentThread() argument
2114 Thread* self = Thread::Attach(thread_name, as_daemon, thread_group, create_peer); in AttachCurrentThread()
/art/libartbase/base/
Dutils.cc254 void SetThreadName(const char* thread_name) { in SetThreadName() argument
257 const char* s = thread_name; in SetThreadName()
266 int len = s - thread_name; in SetThreadName()
268 s = thread_name; in SetThreadName()
270 s = thread_name + len - 15; in SetThreadName()
282 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/test/1971-multi-force-early-return/src/art/
DTest1971.java92 String thread_name = Thread.currentThread().getName(); in runTest() local
93 con.accept("Thread: " + thread_name + " method returned: " + targetMethod()); in runTest()
/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/jni/
Djava_vm_ext.cc455 const char* thread_name = nullptr; in AttachCurrentThreadInternal() local
464 thread_name = args->name; in AttachCurrentThreadInternal()
468 if (!runtime->AttachCurrentThread(thread_name, as_daemon, thread_group, in AttachCurrentThreadInternal()
/art/openjdkjvmti/
Dti_stack.cc1408 std::string thread_name; in ForceEarlyReturn() local
1409 frames.target_->GetThreadName(thread_name); in ForceEarlyReturn()
1410 JVMTI_LOG(WARNING, env) << "PopFrame or force-return already pending on thread " << thread_name; in ForceEarlyReturn()