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

Issue 2134323002: Remove threading primitives from ParseHTMLOnMainThread (Closed)

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

Description

Remove threading primitives from ParseHTMLOnMainThread This patch removes locks from ParsedChunkQueue, and use of crossThreadBind in HTMLDocumentParser/BackgroundHTMLParser, which introduces unecessary copies if we're not actually crossing threads. BUG=627198 Committed: https://crrev.com/0b4376118260f28c64433db1002e23ed8c663cb0 Cr-Commit-Position: refs/heads/master@{#405139}

Patch Set 1 #

Patch Set 2 : stop using crossThreadBind all the time #

Patch Set 3 : remove crossThreadBind from BackgroundHTMLParser #

Total comments: 4

Patch Set 4 : rebase on 405128 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -32 lines) Patch
M third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp View 1 2 3 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h View 1 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 11 chunks +16 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp View 5 chunks +31 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
Charlie Harrison
PTAL. There is a bit of ugliness to support both bind and crossthread bind...
4 years, 5 months ago (2016-07-11 21:09:29 UTC) #3
kouhei (in TOK)
Thanks! I like the patch but would like to delegate review to tzik. I'll stamp ...
4 years, 5 months ago (2016-07-12 01:44:32 UTC) #5
kouhei (in TOK)
-tzik: OOO today kitsune-san: would you take a look?
4 years, 5 months ago (2016-07-12 03:11:15 UTC) #7
hiroshige
lgtm, but please make sure the new code lines (commented below) work fine by tests ...
4 years, 5 months ago (2016-07-12 05:33:12 UTC) #8
kouhei (in TOK)
rubberstamp lgtm
4 years, 5 months ago (2016-07-12 05:34:21 UTC) #9
Charlie Harrison
Thanks! https://codereview.chromium.org/2134323002/diff/40001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp File third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp (right): https://codereview.chromium.org/2134323002/diff/40001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp#newcode335 third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp:335: (*WTF::bind(function, std::forward<Ps>(parameters)...))(); On 2016/07/12 05:33:12, hiroshige wrote: > ...
4 years, 5 months ago (2016-07-12 12:18:36 UTC) #10
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/2134323002/40001
4 years, 5 months ago (2016-07-12 13:22:53 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/242577)
4 years, 5 months ago (2016-07-12 14:40:14 UTC) #14
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/2134323002/40001
4 years, 5 months ago (2016-07-12 19:05:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191720)
4 years, 5 months ago (2016-07-12 22:55:49 UTC) #18
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/2134323002/40001
4 years, 5 months ago (2016-07-13 12:23:33 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/192448) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 12:27:19 UTC) #22
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/2134323002/60001
4 years, 5 months ago (2016-07-13 12:53:50 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-13 14:10:34 UTC) #27
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 14:10:43 UTC) #28
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 14:11:51 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0b4376118260f28c64433db1002e23ed8c663cb0
Cr-Commit-Position: refs/heads/master@{#405139}

Powered by Google App Engine
This is Rietveld 408576698