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

Issue 2074863002: [Reland] 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, yhirano
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Reland] Worker: Protect a running debugger task from forcible worker termination (2) Note: The original CL was reverted because another CL that it depends on was reverted: https://codereview.chromium.org/2046483002/ 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 TBR=kinuko@chromium.org Committed: https://crrev.com/20d56e4845354062512ee3655e7cf2501400dc7d Cr-Commit-Position: refs/heads/master@{#400400}

Patch Set 1 : the original CL #

Patch Set 2 : pick up a part of code that this CL depends on from https://codereview.chromium.org/2053273002/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -17 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 5 chunks +4 lines, -3 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

Messages

Total messages: 17 (11 generated)
nhiroki
Let me use TBR because this CL is (almost) the same as the original CL. ...
4 years, 6 months ago (2016-06-17 05:47:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2074863002/20001
4 years, 6 months ago (2016-06-17 05:47:33 UTC) #9
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/240760)
4 years, 6 months ago (2016-06-17 07:10:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2074863002/20001
4 years, 6 months ago (2016-06-17 07:15:05 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-17 08:36:11 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 08:38:13 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/20d56e4845354062512ee3655e7cf2501400dc7d
Cr-Commit-Position: refs/heads/master@{#400400}

Powered by Google App Engine
This is Rietveld 408576698