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

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

Issue 2363283002: Use 'local-exec' for threadlocal_heap_ in tcmalloc. (Closed)
Patch Set: Try static_library for cast_graphics 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/README.chromium ('k') | third_party/tcmalloc/chromium/src/thread_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/thread_cache.h
diff --git a/third_party/tcmalloc/chromium/src/thread_cache.h b/third_party/tcmalloc/chromium/src/thread_cache.h
index 221cacb8eb34b292c92b47d416a588a5b8fd019d..78f67dfbdfe5479956c97694fb5ff8f24125b6de 100644
--- a/third_party/tcmalloc/chromium/src/thread_cache.h
+++ b/third_party/tcmalloc/chromium/src/thread_cache.h
@@ -269,7 +269,12 @@ class ThreadCache {
// For all non-instrumentation builds, this define will not be set and the
// performance benefit of "intial-exec" will be achieved.
#if defined(HAVE___ATTRIBUTE__) && !defined(PGO_GENERATE)
+ // If we are not using component build, we can further optimize it.
+#if !defined(COMPONENT_BUILD)
+ __attribute__ ((tls_model ("local-exec")))
+#else
__attribute__ ((tls_model ("initial-exec")))
+#endif
# endif
;
#endif
« no previous file with comments | « third_party/tcmalloc/README.chromium ('k') | third_party/tcmalloc/chromium/src/thread_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698