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

Issue 2324693003: Worker: Check forcible termination by WorkerThread::isForciblyTerminated() (Closed)

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

Description

Worker: Check forcible termination by WorkerThread::isForciblyTerminated() Before this CL, WorkerThread checks whether forcible termination happened by WorkerOrWorkletScriptController::isExecutionTerminating(). After this CL, WorkerThread checks it by WorkerThread::isForciblyTerminated() instead. This should be clearer than the previous way and enables to remove an access to WorkerThread::m_globalScope from the main thread. BUG=638877 Committed: https://crrev.com/01ff9de2e66ce93e2dc7bc9f0d7ee2681f32367c Cr-Commit-Position: refs/heads/master@{#418571}

Patch Set 1 #

Patch Set 2 : remake #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : remove unnecessary header inclusion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -50 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h View 1 2 3 3 chunks +1 line, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 3 chunks +2 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 5 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 51 (33 generated)
nhiroki
PTAL. This depends on CLs to remove isTerminating() calls from fetch/streams codebase. I'll land this ...
4 years, 3 months ago (2016-09-09 11:09:02 UTC) #10
yhirano
Sorry, I don't know if Isolate::IsExecutionTerminating() can replace WorkerOrWorkletScriptController::isExecutionTerminating(). Specifically, I don't know if Isolate::IsExecutionTerminating() ...
4 years, 3 months ago (2016-09-12 09:21:09 UTC) #14
adamk
I don't know this off the top of my head, but I'll bet Jochen does.
4 years, 3 months ago (2016-09-12 16:09:25 UTC) #16
haraken
As far as I understand, Isolate::IsExecutionTerminating() keeps returning true after isolate->TerminateExecution is called.
4 years, 3 months ago (2016-09-13 00:21:28 UTC) #17
yhirano
On 2016/09/13 00:21:28, haraken wrote: > As far as I understand, Isolate::IsExecutionTerminating() keeps returning true ...
4 years, 3 months ago (2016-09-14 06:44:04 UTC) #18
haraken
On 2016/09/14 06:44:04, yhirano (slow) wrote: > On 2016/09/13 00:21:28, haraken wrote: > > As ...
4 years, 3 months ago (2016-09-14 06:48:45 UTC) #19
nhiroki
On 2016/09/14 06:48:45, haraken wrote: > On 2016/09/14 06:44:04, yhirano (slow) wrote: > > On ...
4 years, 3 months ago (2016-09-14 07:20:45 UTC) #20
nhiroki
On 2016/09/14 07:20:45, nhiroki wrote: > On 2016/09/14 06:48:45, haraken wrote: > > On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 07:29:26 UTC) #21
yhirano
On 2016/09/14 07:20:45, nhiroki wrote: > On 2016/09/14 06:48:45, haraken wrote: > > On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 07:30:33 UTC) #23
jochen (gone - plz use gerrit)
can you file a bug for the execution termination stuff?
4 years, 3 months ago (2016-09-14 09:00:46 UTC) #24
nhiroki
On 2016/09/14 09:00:46, jochen wrote: > can you file a bug for the execution termination ...
4 years, 3 months ago (2016-09-14 10:43:11 UTC) #25
nhiroki
On 2016/09/14 07:30:33, yhirano (slow) wrote: > On 2016/09/14 07:20:45, nhiroki wrote: > > On ...
4 years, 3 months ago (2016-09-14 10:43:48 UTC) #26
nhiroki
yhirano@, can you review this again? I'll update the CL subject and description later. Thanks!
4 years, 3 months ago (2016-09-14 11:49:07 UTC) #34
yhirano
lgtm https://codereview.chromium.org/2324693003/diff/80001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h File third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h (right): https://codereview.chromium.org/2324693003/diff/80001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h#newcode40 third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h:40: #include "wtf/ThreadingPrimitives.h" Not needed?
4 years, 3 months ago (2016-09-14 11:54:38 UTC) #35
nhiroki
Thank you! https://codereview.chromium.org/2324693003/diff/80001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h File third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h (right): https://codereview.chromium.org/2324693003/diff/80001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h#newcode40 third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.h:40: #include "wtf/ThreadingPrimitives.h" On 2016/09/14 11:54:38, yhirano (slow) ...
4 years, 3 months ago (2016-09-14 13:47:18 UTC) #43
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/2324693003/100001
4 years, 3 months ago (2016-09-14 13:47:43 UTC) #47
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 3 months ago (2016-09-14 15:42:09 UTC) #49
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 15:44:58 UTC) #51
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/01ff9de2e66ce93e2dc7bc9f0d7ee2681f32367c
Cr-Commit-Position: refs/heads/master@{#418571}

Powered by Google App Engine
This is Rietveld 408576698