summaryrefslogtreecommitdiffstats
path: root/base/base.gypi
diff options
context:
space:
mode:
authormichaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-12 20:00:11 +0000
committermichaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-12 20:00:11 +0000
commit5846e5f9563a1d344e1225aa0f690fc6eb1a05ec (patch)
tree38cfbf2c52701191015a78b6db72dc266d33c093 /base/base.gypi
parent31acf3ef2427841346b3e84546e31e909062d511 (diff)
downloadchromium_src-5846e5f9563a1d344e1225aa0f690fc6eb1a05ec.zip
chromium_src-5846e5f9563a1d344e1225aa0f690fc6eb1a05ec.tar.gz
chromium_src-5846e5f9563a1d344e1225aa0f690fc6eb1a05ec.tar.bz2
Switch thread_local to use ThreadPlatformStorage in Android
It might not be good to switch thread_local to use ThreadPlatformStorage on all platforms, in order to pass all tests in Linux, the number of TLS slot has be 1024, it means 4k memory will be temporarily increased in stack, and then move to heap for every thread which use the TLS. Android only needs 256 slot which is much smaller than Linux's usage, and TLS slot is currently only running out on Android's tests. So this patch is only for Android platform. BUG=264406 Review URL: https://codereview.chromium.org/189263003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269854 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gypi')
-rw-r--r--base/base.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/base.gypi b/base/base.gypi
index 86354ae4..d0b7370 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -610,6 +610,7 @@
'threading/thread_id_name_manager.cc',
'threading/thread_id_name_manager.h',
'threading/thread_local.h',
+ 'threading/thread_local_android.cc',
'threading/thread_local_posix.cc',
'threading/thread_local_storage.cc',
'threading/thread_local_storage.h',