| 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
|
|
|