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

Issue 60743004: Implement chromium's TLS. (Closed)

Created:
7 years, 1 month ago by michaelbai
Modified:
6 years, 11 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, bajones
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement chromium's TLS. Using one system TLS to implement multiple chrome's TLS slots. BUG=264406 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241144 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241657 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244124

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : sync #

Patch Set 8 : #

Total comments: 5

Patch Set 9 : #

Total comments: 2

Patch Set 10 : address comments #

Patch Set 11 : fix release build #

Patch Set 12 : sync and reland #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -339 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M base/threading/thread_local_storage.h View 1 2 3 4 5 6 7 8 9 3 chunks +61 lines, -10 lines 0 comments Download
A + base/threading/thread_local_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +89 lines, -116 lines 0 comments Download
M base/threading/thread_local_storage_posix.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -29 lines 0 comments Download
M base/threading/thread_local_storage_win.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -184 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
michaelbai
https://codereview.chromium.org/60743004/diff/1/base/threading/thread_local_storage.cc File base/threading/thread_local_storage.cc (right): https://codereview.chromium.org/60743004/diff/1/base/threading/thread_local_storage.cc#newcode55 base/threading/thread_local_storage.cc:55: CHECK(PlatformThreadLocalStorage::AllocTLS(&key)); Note: I used CHECK here, we almost can ...
7 years, 1 month ago (2013-11-18 18:17:20 UTC) #1
michaelbai
ping
7 years, 1 month ago (2013-11-19 19:07:33 UTC) #2
jar (doing other things)
I have some high level expectations, but I don't see them expressed in a single ...
7 years, 1 month ago (2013-11-20 01:46:15 UTC) #3
michaelbai
I were thinking the ThreadLocalStorage::StaticSlot/Slot is sufficient to use as STL for the reset of ...
7 years, 1 month ago (2013-11-20 05:27:29 UTC) #4
michaelbai
PTAL I didn't move PlatformThreadLocalStorage to its own header file, because the destructor of platform ...
7 years ago (2013-11-25 21:39:31 UTC) #5
jar (doing other things)
https://codereview.chromium.org/60743004/diff/90001/base/threading/thread_local_storage.cc File base/threading/thread_local_storage.cc (right): https://codereview.chromium.org/60743004/diff/90001/base/threading/thread_local_storage.cc#newcode18 base/threading/thread_local_storage.cc:18: // keep track of and call when threads terminate. ...
7 years ago (2013-11-26 20:05:24 UTC) #6
michaelbai
PTAL I should address all your comments, I also found an issue of my previous ...
7 years ago (2013-11-27 00:29:26 UTC) #7
jar (doing other things)
https://codereview.chromium.org/60743004/diff/110001/base/threading/thread_local_storage.cc File base/threading/thread_local_storage.cc (right): https://codereview.chromium.org/60743004/diff/110001/base/threading/thread_local_storage.cc#newcode55 base/threading/thread_local_storage.cc:55: base::subtle::NoBarrier_Load(reinterpret_cast<long*>(&g_native_tls_key))); This cast is IMO going the wrong way. ...
7 years ago (2013-11-27 03:36:24 UTC) #8
michaelbai
Jim, PTAL There is 2 main changes of patch# 4 1. I used AtomicWord for ...
7 years ago (2013-12-03 00:44:31 UTC) #9
jar (doing other things)
https://codereview.chromium.org/60743004/diff/130001/base/threading/thread_local_storage.cc File base/threading/thread_local_storage.cc (right): https://codereview.chromium.org/60743004/diff/130001/base/threading/thread_local_storage.cc#newcode86 base/threading/thread_local_storage.cc:86: key = base::subtle::NoBarrier_Load(&g_native_tls_key); nit: I think we only need ...
7 years ago (2013-12-05 19:53:31 UTC) #10
michaelbai
PTAL, thanks https://codereview.chromium.org/60743004/diff/130001/base/threading/thread_local_storage.cc File base/threading/thread_local_storage.cc (right): https://codereview.chromium.org/60743004/diff/130001/base/threading/thread_local_storage.cc#newcode86 base/threading/thread_local_storage.cc:86: key = base::subtle::NoBarrier_Load(&g_native_tls_key); Right, it should be ...
7 years ago (2013-12-05 22:56:14 UTC) #11
jar (doing other things)
One last thing I noticed... see comments below. Also, with regard to the ifdef for ...
7 years ago (2013-12-06 22:20:09 UTC) #12
jar (doing other things)
LGTM (modulo the alternate suggestion made earlier about where to put platform specific distinctions) https://codereview.chromium.org/60743004/diff/150001/base/threading/thread_local_storage.cc ...
7 years ago (2013-12-07 15:31:41 UTC) #13
michaelbai
Used different OnThreadExit callback for Windows and Posix
7 years ago (2013-12-09 19:52:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/60743004/210001
7 years ago (2013-12-09 20:12:37 UTC) #15
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40207
7 years ago (2013-12-09 22:36:35 UTC) #16
michaelbai
PTAL
7 years ago (2013-12-10 00:00:24 UTC) #17
jar (doing other things)
This is indeed much closer to what I was after. You'll end up needing a ...
7 years ago (2013-12-10 02:27:11 UTC) #18
michaelbai
I noticed you removed yourself from base owner, it is very nice to have you ...
7 years ago (2013-12-10 03:00:57 UTC) #19
jar (doing other things)
LGTM https://codereview.chromium.org/60743004/diff/210001/base/threading/thread_local_storage.cc File base/threading/thread_local_storage.cc (right): https://codereview.chromium.org/60743004/diff/210001/base/threading/thread_local_storage.cc#newcode176 base/threading/thread_local_storage.cc:176: PlatformThreadLocalStorage::TLSKey key = On 2013/12/10 03:00:57, michaelbai wrote: ...
7 years ago (2013-12-10 03:02:25 UTC) #20
jam
On 2013/12/10 03:00:57, michaelbai wrote: > I noticed you removed yourself from base owner, it ...
7 years ago (2013-12-10 20:13:57 UTC) #21
michaelbai
PTAL
7 years ago (2013-12-10 23:26:31 UTC) #22
michaelbai
ping, brett, PTAL
7 years ago (2013-12-13 17:24:48 UTC) #23
brettw
I'm assuming jar did a thorough review of the details, this is base owners LGTM ...
7 years ago (2013-12-16 17:56:36 UTC) #24
michaelbai
https://codereview.chromium.org/60743004/diff/230001/base/threading/thread_local_storage.h File base/threading/thread_local_storage.h (right): https://codereview.chromium.org/60743004/diff/230001/base/threading/thread_local_storage.h#newcode38 base/threading/thread_local_storage.h:38: // The following methods need to be supported on ...
7 years ago (2013-12-16 22:09:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/60743004/250001
7 years ago (2013-12-16 22:18:03 UTC) #26
commit-bot: I haz the power
Change committed as 241144
7 years ago (2013-12-17 03:54:09 UTC) #27
michaelbai
Fixed the crash on buildbot, there is no major change, I were making a stupid ...
7 years ago (2013-12-18 18:37:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/60743004/270001
7 years ago (2013-12-18 18:40:12 UTC) #29
commit-bot: I haz the power
Change committed as 241657
7 years ago (2013-12-18 21:37:00 UTC) #30
Ken Russell (switch to Gerrit)
Note that this CL caused intermittent browser process crashes on Linux Debug configurations and was ...
6 years, 12 months ago (2013-12-26 20:14:06 UTC) #31
michaelbai
Reland as the crash has been fixed by https://src.chromium.org/viewvc/chrome?revision=243702&view=revision
6 years, 11 months ago (2014-01-09 19:42:14 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/60743004/340001
6 years, 11 months ago (2014-01-09 19:45:56 UTC) #33
Ken Russell (switch to Gerrit)
+bajones (current GPU sheriff) Brandon, please watch out for intermittent failures on the Linux Debug ...
6 years, 11 months ago (2014-01-09 20:36:16 UTC) #34
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=244352
6 years, 11 months ago (2014-01-10 00:25:24 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/60743004/340001
6 years, 11 months ago (2014-01-10 04:51:10 UTC) #36
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 08:27:23 UTC) #37
Message was sent while issue was closed.
Change committed as 244124

Powered by Google App Engine
This is Rietveld 408576698