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

Issue 189263003: Switch thread_local to use ThreadPlatformStorage in Android (Closed)

Created:
6 years, 9 months ago by michaelbai
Modified:
6 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269854

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : thread_local_android #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M base/base.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/threading/thread_local.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
A + base/threading/thread_local_android.cc View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M base/threading/thread_local_posix.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M base/threading/thread_local_storage.cc View 1 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
michaelbai
6 years, 9 months ago (2014-03-07 00:21:40 UTC) #1
brettw
Did you mean to check in the goma lock file? Sorry if I lost context ...
6 years, 9 months ago (2014-03-07 18:04:06 UTC) #2
michaelbai
Sorry, actually, I had another patch which remove the lock file, but failed to upload. ...
6 years, 9 months ago (2014-03-07 19:50:44 UTC) #3
michaelbai
ping
6 years, 9 months ago (2014-03-11 16:00:42 UTC) #4
michaelbai
I have moved the logical to android specific file, PTAL, thanks
6 years, 7 months ago (2014-04-28 15:45:16 UTC) #5
michaelbai
Hi Brett, Could you help to review this again? I really want to get it ...
6 years, 7 months ago (2014-04-29 18:19:16 UTC) #6
michaelbai
ping
6 years, 7 months ago (2014-05-02 16:09:36 UTC) #7
michaelbai
ping again
6 years, 7 months ago (2014-05-08 18:38:11 UTC) #8
brettw
Looking now, sorry.
6 years, 7 months ago (2014-05-08 19:21:00 UTC) #9
brettw
lgtm
6 years, 7 months ago (2014-05-08 19:41:24 UTC) #10
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 7 months ago (2014-05-08 20:24:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/189263003/60001
6 years, 7 months ago (2014-05-08 20:29:13 UTC) #12
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 7 months ago (2014-05-09 01:48:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/189263003/80001
6 years, 7 months ago (2014-05-09 01:54:22 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 21:29:04 UTC) #15
commit-bot: I haz the power
Failed to apply patch for base/base.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-09 21:29:04 UTC) #16
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 7 months ago (2014-05-12 16:09:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/189263003/100001
6 years, 7 months ago (2014-05-12 16:09:23 UTC) #18
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 7 months ago (2014-05-12 16:13:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/189263003/100001
6 years, 7 months ago (2014-05-12 16:14:06 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 18:28:36 UTC) #21
commit-bot: I haz the power
Change committed as 269854
6 years, 7 months ago (2014-05-12 20:00:14 UTC) #22
gordanac
6 years, 7 months ago (2014-05-27 15:07:36 UTC) #23
Message was sent while issue was closed.
Hi michaelbai,

Limitations of current chromium's TLS implementation are met while executing
gpu_unittests on Android devices.

If you take a look into chromium buildbot, maximum number of TLS slots is
reached:
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/13...

Actually, the only reason this test is still passing in buildbot is that there
are three test devices that tests cases are shared among (with default
--num_retries=2).
For example, if only one test devices is used num_retries must be 6 in order for
all test cases to be executed.

So, I am wondering if there is a plan to further improve chromium's TLS
implementation? Do you plan to increase number of TLS slots, or to reuse
previously used/freed slots in the future?

Powered by Google App Engine
This is Rietveld 408576698