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

Issue 2484803003: Move WTF::SpinLock to base::SpinLock. (Closed)

Created:
4 years, 1 month ago by palmer
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move WTF::SpinLock to base::SpinLock. This CL depends on https://codereview.chromium.org/2473153003 ("Move some compiler intrinsic #defines to base/."). BUG=632441 Committed: https://crrev.com/d9dbd59434791ddc998d2aeb24f7f1326431ed14 Cr-Commit-Position: refs/heads/master@{#433378}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move to base/synchronization, and use new license. #

Patch Set 3 : Rebase and fix build (NaCl can't have inline assembly). #

Total comments: 1

Patch Set 4 : base::SpinLock → base::subtle::SpinLock, plus a warning comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -172 lines) Patch
M base/BUILD.gn View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A base/synchronization/spin_lock.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A + base/synchronization/spin_lock.cc View 1 2 3 4 chunks +24 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/wtf/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/SpinLock.h View 1 2 3 1 chunk +8 lines, -63 lines 0 comments Download
D third_party/WebKit/Source/wtf/SpinLock.cpp View 1 chunk +0 lines, -83 lines 0 comments Download

Messages

Total messages: 44 (16 generated)
palmer
Question: when I don't have an explicit constructor, I get a chromium-style error saying that ...
4 years, 1 month ago (2016-11-08 00:46:28 UTC) #2
palmer
Note additionally that when I give |SpinLock| the empty ctor, the next compile problem I ...
4 years, 1 month ago (2016-11-08 01:29:22 UTC) #3
dcheng
I think the problem is the clang plugin gets confused by templates, and so it ...
4 years, 1 month ago (2016-11-08 02:06:03 UTC) #5
kinuko
https://codereview.chromium.org/2484803003/diff/1/base/spin_lock.h File base/spin_lock.h (right): https://codereview.chromium.org/2484803003/diff/1/base/spin_lock.h#newcode1 base/spin_lock.h:1: /* drive-by. Should these files be maybe put under ...
4 years, 1 month ago (2016-11-08 05:15:42 UTC) #6
hans
On 2016/11/08 02:06:03, dcheng wrote: > I think the problem is the clang plugin gets ...
4 years, 1 month ago (2016-11-08 17:43:33 UTC) #7
dcheng
On 2016/11/08 17:43:33, hans wrote: > On 2016/11/08 02:06:03, dcheng wrote: > > I think ...
4 years, 1 month ago (2016-11-08 17:56:41 UTC) #8
palmer
> drive-by. Should these files be maybe put under base/synchronization ? Done. Thanks! > Also ...
4 years, 1 month ago (2016-11-10 23:35:12 UTC) #9
palmer
OK, I think this CL is ready to go. PTAL, thanks!
4 years, 1 month ago (2016-11-15 00:16:08 UTC) #12
esprehn
lgtm
4 years, 1 month ago (2016-11-15 00:17:12 UTC) #13
dcheng
https://codereview.chromium.org/2484803003/diff/40001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2484803003/diff/40001/base/BUILD.gn#newcode1208 base/BUILD.gn:1208: # compiler doesn't allow. Will we need to move ...
4 years, 1 month ago (2016-11-15 02:46:03 UTC) #16
Nico
should all the partitionalloc things go into base/partitionalloc (or similar), so that it's easier to ...
4 years, 1 month ago (2016-11-15 15:26:41 UTC) #17
palmer
> Will we need to move things like LazyInstance and Singleton here as well? If ...
4 years, 1 month ago (2016-11-15 19:21:07 UTC) #18
palmer
> should all the partitionalloc things go into base/partitionalloc (or similar), so that it's easier ...
4 years, 1 month ago (2016-11-15 19:28:15 UTC) #19
Primiano Tucci (use gerrit)
Accidentally passing by here while I was having a conversation on this topic with +alexclarke. ...
4 years, 1 month ago (2016-11-16 13:07:14 UTC) #21
alex clarke (OOO till 29th)
On 2016/11/16 13:07:14, Primiano - slow(travelling) wrote: > Accidentally passing by here while I was ...
4 years, 1 month ago (2016-11-16 13:36:13 UTC) #22
dcheng
On 2016/11/16 13:36:13, alex clarke wrote: > On 2016/11/16 13:07:14, Primiano - slow(travelling) wrote: > ...
4 years, 1 month ago (2016-11-16 13:48:01 UTC) #23
dcheng
On 2016/11/16 13:48:01, dcheng wrote: > On 2016/11/16 13:36:13, alex clarke wrote: > > On ...
4 years, 1 month ago (2016-11-16 13:49:13 UTC) #24
Primiano Tucci (use gerrit)
On 2016/11/16 13:49:13, dcheng wrote: > I guess my reply isn't phrased well, but basically, ...
4 years, 1 month ago (2016-11-16 14:00:27 UTC) #25
palmer
> Accidentally passing by here while I was having a conversation on this topic with ...
4 years, 1 month ago (2016-11-16 21:16:13 UTC) #26
Primiano Tucci (use gerrit)
On 2016/11/16 21:16:13, palmer wrote: > > Accidentally passing by here while I was having ...
4 years, 1 month ago (2016-11-16 22:36:05 UTC) #27
palmer
OK, here's that new patchset.
4 years, 1 month ago (2016-11-16 23:32:13 UTC) #28
dcheng
lgtm
4 years, 1 month ago (2016-11-18 19:43:03 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2484803003/60001
4 years, 1 month ago (2016-11-18 21:32:14 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/340926)
4 years, 1 month ago (2016-11-18 23:57:25 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2484803003/60001
4 years, 1 month ago (2016-11-19 00:34:25 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-19 02:03:03 UTC) #41
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d9dbd59434791ddc998d2aeb24f7f1326431ed14 Cr-Commit-Position: refs/heads/master@{#433378}
4 years, 1 month ago (2016-11-19 02:08:18 UTC) #43
kapishnikov
4 years, 1 month ago (2016-11-21 02:58:07 UTC) #44
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2517033002/ by kapishnikov@chromium.org.

The reason for reverting is: Broke Android Cronet ARMv6 Builder:
https://build.chromium.org/p/chromium.android/builders/Android%20Cronet%20ARM....

Powered by Google App Engine
This is Rietveld 408576698