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

Issue 1849023002: WTF::ThreadSpecific should use base::ThreadLocalStorage. (Closed)

Created:
4 years, 8 months ago by esprehn
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, kinuko+watch, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WTF::ThreadSpecific should use base::ThreadLocalStorage. Let's use the base abstraction to allocate the TLS. It's way less code. Committed: https://crrev.com/56641fdb889c6b5d27997465b622d7432c0ba0b8 Cr-Commit-Position: refs/heads/master@{#384650}

Patch Set 1 #

Patch Set 2 : fix gn build. #

Patch Set 3 : Add back the destructor. #

Patch Set 4 : Check isShutdown(). #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -365 lines) Patch
M third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp View 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/BUILD.gn View 1 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/ThreadSpecific.h View 1 2 3 1 chunk +31 lines, -217 lines 1 comment Download
M third_party/WebKit/Source/wtf/ThreadSpecificWin.cpp View 1 chunk +0 lines, -137 lines 0 comments Download
M third_party/WebKit/Source/wtf/wtf.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 33 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849023002/1
4 years, 8 months ago (2016-03-31 23:57:49 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/43793) android_chromium_gn_compile_rel on ...
4 years, 8 months ago (2016-04-01 00:03:05 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849023002/20001
4 years, 8 months ago (2016-04-01 00:26:06 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849023002/20001
4 years, 8 months ago (2016-04-01 01:50:40 UTC) #11
esprehn
Hmm, I'm not sure I understand this one. ThreadSpecific never destroys the object on purpose... ...
4 years, 8 months ago (2016-04-01 04:11:06 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849023002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849023002/40001
4 years, 8 months ago (2016-04-01 04:32:48 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/137912)
4 years, 8 months ago (2016-04-01 05:31:11 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849023002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849023002/60001
4 years, 8 months ago (2016-04-01 07:17:19 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 08:48:57 UTC) #21
esprehn
4 years, 8 months ago (2016-04-01 11:53:41 UTC) #23
haraken
LGTM https://codereview.chromium.org/1849023002/diff/60001/third_party/WebKit/Source/wtf/ThreadSpecific.h File third_party/WebKit/Source/wtf/ThreadSpecific.h (right): https://codereview.chromium.org/1849023002/diff/60001/third_party/WebKit/Source/wtf/ThreadSpecific.h#newcode88 third_party/WebKit/Source/wtf/ThreadSpecific.h:88: if (isShutdown()) I'm not sure if this check ...
4 years, 8 months ago (2016-04-01 12:28:35 UTC) #24
esprehn
On 2016/04/01 at 12:28:35, haraken wrote: > LGTM > > https://codereview.chromium.org/1849023002/diff/60001/third_party/WebKit/Source/wtf/ThreadSpecific.h > File third_party/WebKit/Source/wtf/ThreadSpecific.h (right): ...
4 years, 8 months ago (2016-04-01 15:44:06 UTC) #25
esprehn
On 2016/04/01 at 15:44:06, esprehn wrote: > On 2016/04/01 at 12:28:35, haraken wrote: > > ...
4 years, 8 months ago (2016-04-01 16:35:34 UTC) #26
danakj
DEPS LGTM
4 years, 8 months ago (2016-04-01 18:52:53 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849023002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849023002/60001
4 years, 8 months ago (2016-04-01 18:53:23 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-01 18:59:19 UTC) #30
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/56641fdb889c6b5d27997465b622d7432c0ba0b8 Cr-Commit-Position: refs/heads/master@{#384650}
4 years, 8 months ago (2016-04-01 19:01:43 UTC) #32
esprehn
4 years, 8 months ago (2016-04-04 15:19:03 UTC) #33
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1856793002/ by esprehn@chromium.org.

The reason for reverting is: May have caused a bunch of perf regressions: 
https://bugs.chromium.org/p/chromium/issues/detail?id=600271.

Powered by Google App Engine
This is Rietveld 408576698