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

Unified Diff: base/threading/platform_thread_posix.cc

Issue 292873002: make debug mode ~20% faster on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: odd dcheck removed Created 6 years, 7 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
« no previous file with comments | « no previous file | content/common/set_process_title.cc » ('j') | content/common/set_process_title.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread_posix.cc
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 5b609c1a9870ed4c397944a25bb08319711096b6..a33e6097176af1c8406a77949127e3545178a1c1 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -149,7 +149,7 @@ PlatformThreadId PlatformThread::CurrentId() {
#if defined(OS_MACOSX)
return pthread_mach_thread_np(pthread_self());
#elif defined(OS_LINUX)
- return syscall(__NR_gettid);
+ return pthread_self();
piman 2014/05/20 05:09:22 On my system, PlatformThreadId (a pid_t currently)
#elif defined(OS_ANDROID)
return gettid();
#elif defined(OS_SOLARIS) || defined(OS_QNX)
« no previous file with comments | « no previous file | content/common/set_process_title.cc » ('j') | content/common/set_process_title.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698