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

Issue 2299883006: [Worker] Call prepareForShutdown ASAP when terminated forcibly (Closed)

Created:
4 years, 3 months ago by yhirano
Modified:
4 years, 3 months ago
Reviewers:
nhiroki
CC:
chromium-reviews, blink-reviews, falken, kinuko+worker_chromium.org, blink-worker-reviews_chromium.org, horo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Worker] Call prepareForShutdown ASAP when terminated forcibly When a worker is terminated forcibly (i.e., TerminateExecution is called), it is possible that many tasks are preceding performShutdownOnWorkerThread on the worker task queue. As the v8 context is in an invalid state, we need to ask worker objects to stop working before executing all the queued tasks. BUG=641215 Committed: https://crrev.com/7a2a29de535c01c40ef8ee11621064572676e61d Cr-Commit-Position: refs/heads/master@{#416598}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : fix tests #

Total comments: 5

Patch Set 5 : fix #

Total comments: 2

Patch Set 6 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (28 generated)
yhirano
4 years, 3 months ago (2016-09-02 09:10:08 UTC) #18
nhiroki
lgtm https://codereview.chromium.org/2299883006/diff/60001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/2299883006/diff/60001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode258 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:258: postTaskToWorkerGlobalScope(BLINK_FROM_HERE, createCrossThreadTask(&WorkerThreadableLoaderTestHelper::clearLoader, crossThreadUnretained(this))); How about passing WaitableEvent object ...
4 years, 3 months ago (2016-09-05 03:26:45 UTC) #21
yhirano
https://codereview.chromium.org/2299883006/diff/60001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/2299883006/diff/60001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode258 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:258: postTaskToWorkerGlobalScope(BLINK_FROM_HERE, createCrossThreadTask(&WorkerThreadableLoaderTestHelper::clearLoader, crossThreadUnretained(this))); On 2016/09/05 03:26:45, nhiroki wrote: > ...
4 years, 3 months ago (2016-09-06 04:29:51 UTC) #24
nhiroki
https://codereview.chromium.org/2299883006/diff/60001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/2299883006/diff/60001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode258 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:258: postTaskToWorkerGlobalScope(BLINK_FROM_HERE, createCrossThreadTask(&WorkerThreadableLoaderTestHelper::clearLoader, crossThreadUnretained(this))); On 2016/09/06 04:29:51, yhirano wrote: > ...
4 years, 3 months ago (2016-09-06 05:06:40 UTC) #25
yhirano
https://codereview.chromium.org/2299883006/diff/80001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/2299883006/diff/80001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode334 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:334: static void signal(WaitableEvent* event) On 2016/09/06 05:06:40, nhiroki wrote: ...
4 years, 3 months ago (2016-09-06 05:38:03 UTC) #28
nhiroki
lgtm2
4 years, 3 months ago (2016-09-06 05:40:16 UTC) #29
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/2299883006/100001
4 years, 3 months ago (2016-09-06 05:41:29 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-06 06:56:55 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 06:58:12 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7a2a29de535c01c40ef8ee11621064572676e61d
Cr-Commit-Position: refs/heads/master@{#416598}

Powered by Google App Engine
This is Rietveld 408576698