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

Issue 2015823002: Worker: Stop calling Isolate::TerminateExecution() on a worker thread (Closed)

Created:
4 years, 7 months ago by nhiroki
Modified:
4 years, 7 months ago
Reviewers:
kinuko, yhirano
CC:
chromium-reviews, blink-reviews, kinuko+worker_chromium.org, falken, blink-worker-reviews_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@reorder_functions
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Stop calling Isolate::TerminateExecution() on a worker thread When we need to stop further worker script execution from the worker thread, we should call WorkerThread::prepareForShutdownOnWorkerThread() that provides more graceful shutdown sequence than Isolate::TerminateExecution(). BUG=487050 Committed: https://crrev.com/4a47d3b7f8bc3204f79d343711bd9578c411d480 Cr-Commit-Position: refs/heads/master@{#396212}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Move prepareForShutdownOnWorkerThread() call to out of a critical section #

Total comments: 2

Patch Set 3 : edit comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -38 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerThread.h View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 chunks +32 lines, -35 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
nhiroki
PTAL, thanks!
4 years, 7 months ago (2016-05-26 07:49:03 UTC) #7
yhirano
https://codereview.chromium.org/2015823002/diff/20001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2015823002/diff/20001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode456 third_party/WebKit/Source/core/workers/WorkerThread.cpp:456: prepareForShutdownOnWorkerThread(); I'm not sure why this is needed, because ...
4 years, 7 months ago (2016-05-26 07:57:38 UTC) #9
nhiroki
Thank you! Updated. https://codereview.chromium.org/2015823002/diff/20001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2015823002/diff/20001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode456 third_party/WebKit/Source/core/workers/WorkerThread.cpp:456: prepareForShutdownOnWorkerThread(); On 2016/05/26 07:57:38, yhirano wrote: ...
4 years, 7 months ago (2016-05-26 08:13:52 UTC) #10
kinuko
lgtm https://codereview.chromium.org/2015823002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2015823002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode453 third_party/WebKit/Source/core/workers/WorkerThread.cpp:453: // close the event queue. nit: now that ...
4 years, 7 months ago (2016-05-26 08:50:49 UTC) #11
nhiroki
Thank you! Updated. https://codereview.chromium.org/2015823002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2015823002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode453 third_party/WebKit/Source/core/workers/WorkerThread.cpp:453: // close the event queue. On ...
4 years, 7 months ago (2016-05-26 09:00:19 UTC) #12
yhirano
lgtm
4 years, 7 months ago (2016-05-26 09:03:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015823002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2015823002/60001
4 years, 7 months ago (2016-05-26 09:03:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/228717)
4 years, 7 months ago (2016-05-26 13:06:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015823002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2015823002/60001
4 years, 7 months ago (2016-05-26 16:02:09 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 7 months ago (2016-05-26 17:18:45 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 17:20:23 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4a47d3b7f8bc3204f79d343711bd9578c411d480
Cr-Commit-Position: refs/heads/master@{#396212}

Powered by Google App Engine
This is Rietveld 408576698