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

Issue 897523002: Handle rejected promises better for workers. (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 10 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Handle rejected promises better for workers. Rework how the rejected promises that v8 reports are processed in a worker context, attaching the queue containing them to WorkerScriptController, which is then drained by the worker thread's task observer. Along with that, make the individual rejected promises Oilpan friendly. R=haraken BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189785

Patch Set 1 #

Patch Set 2 : Add orderly release of the queue singleton on shutdown #

Patch Set 3 : move the reject promise handling over to script controllers #

Patch Set 4 : fix unit test usage of NullExecutionContexts #

Patch Set 5 : go back to having rejected-promises be handled on the main thread by EndOfTaskRunner #

Total comments: 8

Patch Set 6 : tidying #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -112 lines) Patch
A Source/bindings/core/v8/RejectedPromises.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A Source/bindings/core/v8/RejectedPromises.cpp View 1 2 1 chunk +120 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/V8Initializer.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/core/v8/V8Initializer.cpp View 1 2 3 4 5 9 chunks +48 lines, -108 lines 0 comments Download
M Source/bindings/core/v8/WorkerScriptController.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/WorkerScriptController.cpp View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/v8.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M Source/web/WebKit.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (5 generated)
sof
Please take a look. Has better GC plugin support been considered for these kinds of ...
5 years, 10 months ago (2015-02-02 21:44:58 UTC) #2
haraken
LGTM. > Has better GC plugin support been considered for these kinds of off-heap > ...
5 years, 10 months ago (2015-02-02 23:38:07 UTC) #3
sof
On 2015/02/02 23:38:07, haraken wrote: > LGTM. > > > Has better GC plugin support ...
5 years, 10 months ago (2015-02-03 06:39:17 UTC) #4
sof
On 2015/02/03 06:39:17, sof wrote: > On 2015/02/02 23:38:07, haraken wrote: > > LGTM. > ...
5 years, 10 months ago (2015-02-03 10:16:13 UTC) #5
sof
On 2015/02/03 10:16:13, sof wrote: > On 2015/02/03 06:39:17, sof wrote: > > On 2015/02/02 ...
5 years, 10 months ago (2015-02-03 19:48:14 UTC) #6
sof
As ps#2 made substantial changes over the initial one, it needs a re-review, I reckon. ...
5 years, 10 months ago (2015-02-04 10:31:56 UTC) #7
sof
ping
5 years, 10 months ago (2015-02-06 06:27:19 UTC) #8
haraken
On 2015/02/06 06:27:19, sof wrote: > ping Sorry for the delay. Can we probably just ...
5 years, 10 months ago (2015-02-06 06:49:14 UTC) #9
sof
On 2015/02/06 06:49:14, haraken wrote: > On 2015/02/06 06:27:19, sof wrote: > > ping > ...
5 years, 10 months ago (2015-02-06 11:21:18 UTC) #10
haraken
On 2015/02/06 11:21:18, sof wrote: > On 2015/02/06 06:49:14, haraken wrote: > > On 2015/02/06 ...
5 years, 10 months ago (2015-02-06 13:32:34 UTC) #11
sof
On 2015/02/06 06:49:14, haraken wrote: > On 2015/02/06 06:27:19, sof wrote: > > ping > ...
5 years, 10 months ago (2015-02-07 17:12:52 UTC) #12
haraken
Mostly looks good. https://codereview.chromium.org/897523002/diff/80001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/897523002/diff/80001/Source/bindings/core/v8/RejectedPromises.cpp#newcode73 Source/bindings/core/v8/RejectedPromises.cpp:73: void RejectedPromises::dispose() Who calls dispose() when ...
5 years, 10 months ago (2015-02-08 01:53:55 UTC) #14
sof
https://codereview.chromium.org/897523002/diff/80001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/897523002/diff/80001/Source/bindings/core/v8/RejectedPromises.cpp#newcode73 Source/bindings/core/v8/RejectedPromises.cpp:73: void RejectedPromises::dispose() On 2015/02/08 01:53:54, haraken wrote: > > ...
5 years, 10 months ago (2015-02-08 06:57:39 UTC) #15
sof
https://codereview.chromium.org/897523002/diff/80001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/897523002/diff/80001/Source/bindings/core/v8/V8Initializer.cpp#newcode192 Source/bindings/core/v8/V8Initializer.cpp:192: DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<RejectedPromises>, rejectedPromises, (adoptPtrWillBeNoop (new RejectedPromises()))); On 2015/02/08 01:53:55, haraken ...
5 years, 10 months ago (2015-02-08 07:26:48 UTC) #16
haraken
LGTM
5 years, 10 months ago (2015-02-09 00:53:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/897523002/100001
5 years, 10 months ago (2015-02-09 07:10:06 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 07:13:32 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189785

Powered by Google App Engine
This is Rietveld 408576698