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

Issue 2474303004: Remove mutex locks in SchemeRegistry (Closed)

Created:
4 years, 1 month ago by Charlie Harrison
Modified:
4 years, 1 month ago
CC:
blink-reviews, chromium-reviews, brucedawson
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove mutex locks in SchemeRegistry This patch removes locks from the SchemeRegistry, in favor of moving all initialization to the render thread initialization period. BUG=348655 Committed: https://crrev.com/087c8b21705dd47c9a71058bf743147324425585 Cr-Commit-Position: refs/heads/master@{#431468}

Patch Set 1 #

Patch Set 2 : #include #

Total comments: 4

Patch Set 3 : let's try... just exposing the headers? #

Patch Set 4 : tkent review #

Total comments: 4

Patch Set 5 : kinuko@ review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -83 lines) Patch
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp View 1 2 3 4 22 chunks +57 lines, -81 lines 0 comments Download
M third_party/WebKit/Source/wtf/Threading.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 62 (36 generated)
Charlie Harrison
kinuko@, PTAL? I tried to do as you suggested in the platform-architecture-dev@ thread. Looks like ...
4 years, 1 month ago (2016-11-05 19:41:57 UTC) #18
kinuko
https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode92 third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp:92: DCHECK(WTF::isBeforeThreadCreated()); Given that we're deprecating ASSERT could we change ...
4 years, 1 month ago (2016-11-06 11:14:25 UTC) #19
Charlie Harrison
https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode165 third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp:165: void SchemeRegistry::initialize() { On 2016/11/06 11:14:25, kinuko wrote: > ...
4 years, 1 month ago (2016-11-07 17:30:32 UTC) #20
Charlie Harrison
https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode92 third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp:92: DCHECK(WTF::isBeforeThreadCreated()); On 2016/11/06 11:14:25, kinuko wrote: > Given that ...
4 years, 1 month ago (2016-11-07 17:57:48 UTC) #21
kinuko
On 2016/11/07 17:57:48, Charlie Harrison wrote: > https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp > File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): > > https://codereview.chromium.org/2474303004/diff/20001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode92 ...
4 years, 1 month ago (2016-11-08 01:07:38 UTC) #22
Charlie Harrison
I ended up just exposing the headers unconditionally, where the impl is still gated behind ...
4 years, 1 month ago (2016-11-08 03:44:23 UTC) #27
kinuko
On 2016/11/08 03:44:23, Charlie Harrison wrote: > I ended up just exposing the headers unconditionally, ...
4 years, 1 month ago (2016-11-08 04:10:27 UTC) #30
tkent
On 2016/11/08 at 04:10:27, kinuko wrote: > On 2016/11/08 03:44:23, Charlie Harrison wrote: > > ...
4 years, 1 month ago (2016-11-08 05:48:39 UTC) #31
tkent
On 2016/11/08 at 05:48:39, tkent wrote: > On 2016/11/08 at 04:10:27, kinuko wrote: > > ...
4 years, 1 month ago (2016-11-08 05:52:00 UTC) #32
Charlie Harrison
Thanks, I've added empty impls in the pthreads/winthreads files, and added a comment.
4 years, 1 month ago (2016-11-08 13:59:21 UTC) #35
kinuko
scheme registry changes lgtm, I'd like to land this and wait for a few days ...
4 years, 1 month ago (2016-11-09 03:56:37 UTC) #38
Charlie Harrison
tkent@, ptal? https://codereview.chromium.org/2474303004/diff/60001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): https://codereview.chromium.org/2474303004/diff/60001/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode157 third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp:157: void SchemeRegistry::initialize() { On 2016/11/09 03:56:37, kinuko ...
4 years, 1 month ago (2016-11-09 15:31:40 UTC) #41
tkent
lgtm
4 years, 1 month ago (2016-11-11 00:14:39 UTC) #44
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/2474303004/80001
4 years, 1 month ago (2016-11-11 00:36:52 UTC) #47
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-11 02:33:06 UTC) #49
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/087c8b21705dd47c9a71058bf743147324425585 Cr-Commit-Position: refs/heads/master@{#431468}
4 years, 1 month ago (2016-11-11 02:38:18 UTC) #51
Sébastien Marchand
For some reason this is breaking the official Windows PGO build: https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Win%20PGO%20Builder/builds/5481 It looks like ...
4 years, 1 month ago (2016-11-11 13:38:04 UTC) #53
Charlie Harrison
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2498623002/ by csharrison@chromium.org. ...
4 years, 1 month ago (2016-11-11 14:13:02 UTC) #54
Charlie Harrison
I guess PGO builds hate this. Let me see if I can refactor so we ...
4 years, 1 month ago (2016-11-11 21:57:23 UTC) #55
Sébastien Marchand
On 2016/11/11 21:57:23, Charlie Harrison wrote: > I guess PGO builds hate this. Let me ...
4 years, 1 month ago (2016-11-11 22:00:38 UTC) #56
Charlie Harrison
On 2016/11/11 22:00:38, Sébastien Marchand wrote: > On 2016/11/11 21:57:23, Charlie Harrison wrote: > > ...
4 years, 1 month ago (2016-11-11 22:03:29 UTC) #57
Sébastien Marchand
The implementation of the 'isBeforeThreadCreated' function is encapsulated in a '#if ENABLE(ASSERT)' block, is it ...
4 years, 1 month ago (2016-11-11 22:19:08 UTC) #58
Charlie Harrison
On 2016/11/11 22:19:08, Sébastien Marchand wrote: > The implementation of the 'isBeforeThreadCreated' function is encapsulated ...
4 years, 1 month ago (2016-11-11 22:20:13 UTC) #59
Sébastien Marchand
Yeah, I've confirmed that this is the problem, not sure why though.
4 years, 1 month ago (2016-11-11 22:20:40 UTC) #60
Sébastien Marchand
+1, this isn't the first time that I've seen this kind of issue. IMHO if ...
4 years, 1 month ago (2016-11-11 22:23:25 UTC) #61
Charlie Harrison
4 years, 1 month ago (2016-11-11 22:24:36 UTC) #62
Message was sent while issue was closed.
On 2016/11/11 22:23:25, Sébastien Marchand wrote:
> +1, this isn't the first time that I've seen this kind of issue.
> 
> IMHO if a function implementation is behind to a preprocessor flag then its
> declaration should also be behind this same flag.

Thanks, good rule of thumb.

Powered by Google App Engine
This is Rietveld 408576698