Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5302)

Unified Diff: base/threading/platform_thread_linux.cc

Issue 1845753006: Don't create redundant ThreadData for Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/threading/platform_thread_linux.cc
diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc
index 95ed32418ff49bdce1cfc91b846374000f62a4e3..053a2b813a8e30da6623b28f178289f488e788bb 100644
--- a/base/threading/platform_thread_linux.cc
+++ b/base/threading/platform_thread_linux.cc
@@ -66,9 +66,10 @@ bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) {
} // namespace internal
// static
-void PlatformThread::SetName(const std::string& name) {
+void PlatformThread::SetName(const std::string& name,
+ bool is_worker_thread) {
ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
- tracked_objects::ThreadData::InitializeThreadContext(name);
+ tracked_objects::ThreadData::InitializeThreadContext(name, is_worker_thread);
#if !defined(OS_NACL)
// On linux we can get the thread names to show up in the debugger by setting

Powered by Google App Engine
This is Rietveld 408576698