From 5846e5f9563a1d344e1225aa0f690fc6eb1a05ec Mon Sep 17 00:00:00 2001 From: "michaelbai@chromium.org" Date: Mon, 12 May 2014 20:00:11 +0000 Subject: 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 --- base/base.gypi | 1 + 1 file changed, 1 insertion(+) (limited to 'base/base.gypi') 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', -- cgit v1.1