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

Unified Diff: third_party/tcmalloc/chromium/src/thread_cache.cc

Issue 2640263003: tcmalloc: Use the default TLS model on arm-gcc, CrOS only. (Closed)
Patch Set: tcmalloc: Use the default TLS model on arm-gcc, CrOS only. Created 3 years, 11 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 | « third_party/tcmalloc/chromium/src/thread_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/thread_cache.cc
diff --git a/third_party/tcmalloc/chromium/src/thread_cache.cc b/third_party/tcmalloc/chromium/src/thread_cache.cc
index 1ad0f6d66d675011b7ec7db74a6f5b1a0afdf9b7..7ca92719b3d4ccc448333d9e21117aed85c9bf2c 100644
--- a/third_party/tcmalloc/chromium/src/thread_cache.cc
+++ b/third_party/tcmalloc/chromium/src/thread_cache.cc
@@ -66,7 +66,11 @@ ThreadCache* ThreadCache::next_memory_steal_ = NULL;
__thread ThreadCache* ThreadCache::threadlocal_heap_
// See comments in thread_cache.h about this. Bug here:
// http://code.google.com/p/chromium/issues/detail?id=124489
-#if defined(HAVE___ATTRIBUTE__) && !defined(PGO_GENERATE)
+//
+// gcc has a problem with this tls model on arm.
+// See https://bugs.chromium.org/p/chromium/issues/detail?id=650137
+#if defined(HAVE___ATTRIBUTE__) && !defined(PGO_GENERATE) && \
+ !(!defined(__clang__) && defined(OS_CHROMEOS) && defined(__arm__))
__attribute__ ((tls_model ("initial-exec")))
# endif
;
« no previous file with comments | « third_party/tcmalloc/chromium/src/thread_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698