Index: third_party/WebKit/Source/wtf/ThreadingPthreads.cpp |
diff --git a/third_party/WebKit/Source/wtf/ThreadingPthreads.cpp b/third_party/WebKit/Source/wtf/ThreadingPthreads.cpp |
index ad9b520ac9f44add1284c67ea911ffe9aed00030..886e661c2aa6746139444527a8e0eedf72156e33 100644 |
--- a/third_party/WebKit/Source/wtf/ThreadingPthreads.cpp |
+++ b/third_party/WebKit/Source/wtf/ThreadingPthreads.cpp |
@@ -103,15 +103,7 @@ void unlockAtomicallyInitializedStaticMutex() { |
} |
ThreadIdentifier currentThread() { |
-// TLS lookup is fast on these platforms. |
-#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD) |
return wtfThreadData().threadId(); |
-#else |
- // TODO(csharrison): For platforms where TLS lookup is slow, use the hack that |
- // oilpan uses in ThreadState::current() to check if this is the main thread |
- // via stack address. |
- return internal::currentThreadSyscall(); |
-#endif |
} |
MutexBase::MutexBase(bool recursive) { |