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

Issue 370553003: Have the Worker destructor handle non-started Workers better. (Closed)

Created:
6 years, 5 months ago by sof
Modified:
6 years, 5 months ago
CC:
blink-reviews, kinuko+worker_chromium.org, horo+watch_chromium.org, falken
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Have the Worker destructor handle non-started Workers better. If the creation of a Worker fails early due to an invalid script URL, the worker context proxy isn't created. Hence, the assumption that the Worker's ExecutionContext is kept alive by it doesn't apply. Adjust the asserting in the destructor to reflect that. R=haraken@chromium.org BUG=301575 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177474

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add m_contextProxy asserts #

Patch Set 3 : Swap lines; tidier. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M Source/core/workers/Worker.cpp View 1 2 4 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sof
Please take a look. This one trips up Oilpan tests once in a while, esp. ...
6 years, 5 months ago (2014-07-03 12:11:23 UTC) #1
haraken
LGTM https://codereview.chromium.org/370553003/diff/1/Source/core/workers/Worker.cpp File Source/core/workers/Worker.cpp (right): https://codereview.chromium.org/370553003/diff/1/Source/core/workers/Worker.cpp#newcode97 Source/core/workers/Worker.cpp:97: { Add ASSERT(m_contextProxy) https://codereview.chromium.org/370553003/diff/1/Source/core/workers/Worker.cpp#newcode131 Source/core/workers/Worker.cpp:131: WorkerThreadStartMode startMode = ...
6 years, 5 months ago (2014-07-03 12:14:04 UTC) #2
sof
Thanks. https://codereview.chromium.org/370553003/diff/1/Source/core/workers/Worker.cpp File Source/core/workers/Worker.cpp (right): https://codereview.chromium.org/370553003/diff/1/Source/core/workers/Worker.cpp#newcode97 Source/core/workers/Worker.cpp:97: { On 2014/07/03 12:14:04, haraken wrote: > > ...
6 years, 5 months ago (2014-07-03 12:23:11 UTC) #3
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 5 months ago (2014-07-03 12:24:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/370553003/40001
6 years, 5 months ago (2014-07-03 12:25:59 UTC) #5
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 13:28:43 UTC) #6
Message was sent while issue was closed.
Change committed as 177474

Powered by Google App Engine
This is Rietveld 408576698