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

Issue 674133002: Reland: Script streaming: Add an option to make the main thread block (wait for parsing) (Closed)

Created:
6 years, 2 months ago by marja
Modified:
6 years, 1 month ago
Reviewers:
haraken, Sami
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Reland 2: Script streaming: Add an option to make the main thread block (wait for parsing) This is the same as r184361 which was speculatively reverted (since the earlier version of it was broken). This makes the main thread block and wait for the parser thread when all the script data has arrived. The goal is to ensure that the script (which can now be compiled) will get the main thread's attention as soon as possible. This feature is temporary: The usefulness of blocking will be evaluated with Finch, and this option will be removed (blocking will be always enabled or never enabled, based on which option turns out to be better). Previous (broken) version: https://codereview.chromium.org/651163002/ R=haraken@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184504

Patch Set 1 #

Patch Set 2 : fixes #

Patch Set 3 : code review (skyostil@) #

Total comments: 4

Patch Set 4 : code review (haraken@) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -42 lines) Patch
M Source/bindings/core/v8/ScriptStreamer.h View 1 5 chunks +25 lines, -4 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 10 chunks +95 lines, -27 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerTest.cpp View 11 chunks +15 lines, -8 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerThread.cpp View 1 chunk +1 line, -3 lines 0 comments Download
A Source/bindings/core/v8/ScriptStreamingMode.h View 1 chunk +25 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/v8.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Settings.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
marja
haraken, ptal. The first patch set is what I landed before, and fixes are in ...
6 years, 2 months ago (2014-10-24 13:05:52 UTC) #1
Sami
Condition var usage lgtm now, thanks!
6 years, 2 months ago (2014-10-24 13:23:21 UTC) #3
haraken
LGTM https://codereview.chromium.org/674133002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/674133002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode339 Source/bindings/core/v8/ScriptStreamer.cpp:339: ASSERT(isFinished()); This ASSERT won't make sense. https://codereview.chromium.org/674133002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode344 Source/bindings/core/v8/ScriptStreamer.cpp:344: ...
6 years, 2 months ago (2014-10-24 13:43:04 UTC) #4
marja
thx for review https://codereview.chromium.org/674133002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/674133002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode339 Source/bindings/core/v8/ScriptStreamer.cpp:339: ASSERT(isFinished()); On 2014/10/24 13:43:04, haraken wrote: ...
6 years, 2 months ago (2014-10-24 13:48:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/674133002/60001
6 years, 2 months ago (2014-10-24 13:49:38 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 184361
6 years, 2 months ago (2014-10-24 14:53:23 UTC) #8
marja
This got reverted because of crashes, but the crash interval actually contains the earlier version ...
6 years, 1 month ago (2014-10-28 09:53:45 UTC) #9
marja
(See crbug.com/426957)
6 years, 1 month ago (2014-10-28 09:56:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/674133002/60001
6 years, 1 month ago (2014-10-28 09:56:26 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 184504
6 years, 1 month ago (2014-10-28 09:57:23 UTC) #13
marja
6 years, 1 month ago (2014-10-28 09:59:10 UTC) #14
Message was sent while issue was closed.
Wut, the commit bot didn't run any try jobs... that was not intentional. o.O

Powered by Google App Engine
This is Rietveld 408576698