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

Issue 2046483002: Worker: Protect a running debugger task from forcible worker termination (2) (Closed)

Created:
4 years, 6 months ago by nhiroki
Modified:
4 years, 6 months ago
Reviewers:
kinuko
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@avoid_debugger_task
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Protect a running debugger task from forcible worker termination (2) A running debugger task must be protected from forcible worker termination, but in the current implementation, there is a corner case where the debugger task can suddenly be killed as follows: 1) terminate() is called while a debugger task is running. This does not schedule a task to forcibly terminate the worker execution. 2) terminateAndWait() is called while a debugger task is still running. This attempts to overtake the scheduled (actually not scheduled) termination task and forcibly terminates the worker execution. 3) The running debugger task is interrupted and possibly crashes. After this change, terminateAndWait() respects the running debugger task on the step 2). BUG=616775 Committed: https://crrev.com/39ce89cd7e60e2f20925eb332d9d9735185425f4 Cr-Commit-Position: refs/heads/master@{#400120}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -16 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerThread.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 3 chunks +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 6 chunks +38 lines, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (13 generated)
nhiroki
PTAL, thanks!
4 years, 6 months ago (2016-06-15 12:12:14 UTC) #11
kinuko
lgtm
4 years, 6 months ago (2016-06-16 01:41:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046483002/180001
4 years, 6 months ago (2016-06-16 07:39:26 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:180001)
4 years, 6 months ago (2016-06-16 10:02:30 UTC) #15
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/39ce89cd7e60e2f20925eb332d9d9735185425f4 Cr-Commit-Position: refs/heads/master@{#400120}
4 years, 6 months ago (2016-06-16 10:04:31 UTC) #17
Henrik Grunell
4 years, 6 months ago (2016-06-16 11:55:49 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:180001) has been created in
https://codereview.chromium.org/2069413003/ by grunell@chromium.org.

The reason for reverting is: Two compositorworker tests have failed flakily
after the CL this CL depends on landed:

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20ASAN/b...

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20ASAN/b...

Need to revert this first..

Powered by Google App Engine
This is Rietveld 408576698