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

Issue 2268933002: ServiceWorker: Detect forcible worker thread termination in a correct way (Closed)

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

Description

ServiceWorker: Detect forcible worker thread termination in a correct way WorkerThread::terminated() is not a correct way to detect forcible worker thread termination during an event dispatch because it just represents that the worker thread is requested to terminate on the main thread, and it can return true even if a dispatched event is successfully finished without an interruption. BUG=639153, 640078 Committed: https://crrev.com/0aeb592d32403fe36924953d37b6a0626a0f7e09 Cr-Commit-Position: refs/heads/master@{#413692}

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : revert moving getExitCode() in favor of https://codereview.chromium.org/2274453002/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 27 (18 generated)
nhiroki
PTAL, thanks!
4 years, 4 months ago (2016-08-23 04:03:32 UTC) #10
horo
https://codereview.chromium.org/2268933002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2268933002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode342 third_party/WebKit/Source/core/workers/WorkerThread.cpp:342: MutexLocker lock(m_threadStateMutex); you can use getExitCode()
4 years, 4 months ago (2016-08-23 05:33:20 UTC) #11
nhiroki
https://codereview.chromium.org/2268933002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2268933002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode342 third_party/WebKit/Source/core/workers/WorkerThread.cpp:342: MutexLocker lock(m_threadStateMutex); On 2016/08/23 05:33:20, horo wrote: > you ...
4 years, 4 months ago (2016-08-23 05:48:42 UTC) #12
horo
lgtm https://codereview.chromium.org/2268933002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2268933002/diff/1/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode342 third_party/WebKit/Source/core/workers/WorkerThread.cpp:342: MutexLocker lock(m_threadStateMutex); On 2016/08/23 05:48:42, nhiroki wrote: > ...
4 years, 4 months ago (2016-08-23 06:18:31 UTC) #16
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/2268933002/60001
4 years, 4 months ago (2016-08-23 06:20:37 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/127667)
4 years, 4 months ago (2016-08-23 07:26:42 UTC) #21
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/2268933002/60001
4 years, 4 months ago (2016-08-23 07:40:02 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-23 08:19:24 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 08:20:56 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0aeb592d32403fe36924953d37b6a0626a0f7e09
Cr-Commit-Position: refs/heads/master@{#413692}

Powered by Google App Engine
This is Rietveld 408576698