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

Unified Diff: third_party/tcmalloc/chromium/src/base/sysinfo.cc

Issue 14321006: Adds TCMalloc support for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dai's comments Created 7 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
Index: third_party/tcmalloc/chromium/src/base/sysinfo.cc
diff --git a/third_party/tcmalloc/chromium/src/base/sysinfo.cc b/third_party/tcmalloc/chromium/src/base/sysinfo.cc
index 82f3f56a90e71ef81f7ecc7b4e2c566025223a33..08b86fddbc157cb3f00bcdc12607697ca49c88a0 100644
--- a/third_party/tcmalloc/chromium/src/base/sysinfo.cc
+++ b/third_party/tcmalloc/chromium/src/base/sysinfo.cc
@@ -503,7 +503,7 @@ int NumCPUs(void) {
// true.
// ----------------------------------------------------------------------
bool HasPosixThreads() {
-#if defined(__linux__)
+#if defined(__linux__) && !defined(__ANDROID__)
Dai Mikurube (NOT FULLTIME) 2013/05/08 14:53:25 Let's add a comment that describes we can't do it
bulach 2013/05/08 16:09:10 Done.
#ifndef _CS_GNU_LIBPTHREAD_VERSION
#define _CS_GNU_LIBPTHREAD_VERSION 3
#endif

Powered by Google App Engine
This is Rietveld 408576698