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

Issue 2325923002: Worker: Factor out a part of WorkerThread::terminateInternal() into its own function for cleanup (Closed)

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

Description

Worker: Factor out a part of WorkerThread::terminateInternal() into its own function for cleanup Motivation of this change is to improve readability/testability of the current complex critical section, and to make it more robust to future changes. BUG=640843 Committed: https://crrev.com/ece89237c1fe0cf950bfb405d9c214b7b0fd7aff Cr-Commit-Position: refs/heads/master@{#418103}

Patch Set 1 : fix #

Total comments: 3

Patch Set 2 : check Mutex.locked() #

Patch Set 3 : fix compile failures #

Total comments: 6

Patch Set 4 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -69 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 3 4 chunks +24 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 9 chunks +81 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 13 chunks +44 lines, -20 lines 0 comments Download

Messages

Total messages: 46 (31 generated)
nhiroki
Hi, can you review this? My motivation for this change is to improve readability/testability of ...
4 years, 3 months ago (2016-09-09 05:51:04 UTC) #14
haraken
LGTM https://codereview.chromium.org/2325923002/diff/50001/third_party/WebKit/Source/core/workers/WorkerThread.h File third_party/WebKit/Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/2325923002/diff/50001/third_party/WebKit/Source/core/workers/WorkerThread.h#newcode204 third_party/WebKit/Source/core/workers/WorkerThread.h:204: bool shouldScheduleToTerminateExecution(const MutexLocker&); On 2016/09/09 05:51:04, nhiroki wrote: ...
4 years, 3 months ago (2016-09-09 06:41:01 UTC) #15
nhiroki
Thank you! https://codereview.chromium.org/2325923002/diff/50001/third_party/WebKit/Source/core/workers/WorkerThread.h File third_party/WebKit/Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/2325923002/diff/50001/third_party/WebKit/Source/core/workers/WorkerThread.h#newcode204 third_party/WebKit/Source/core/workers/WorkerThread.h:204: bool shouldScheduleToTerminateExecution(const MutexLocker&); On 2016/09/09 06:41:01, haraken ...
4 years, 3 months ago (2016-09-09 07:14:41 UTC) #18
haraken
LGTM
4 years, 3 months ago (2016-09-09 07:40:32 UTC) #21
nhiroki
Hmmm..., chromeos builds are failing because Mutex.locked() is not defined. Apparently, on the bots, DCHECK() ...
4 years, 3 months ago (2016-09-09 08:28:37 UTC) #22
nhiroki
On 2016/09/09 08:28:37, nhiroki wrote: > Hmmm..., chromeos builds are failing because Mutex.locked() is not ...
4 years, 3 months ago (2016-09-09 10:08:08 UTC) #23
nhiroki
On 2016/09/09 10:08:08, nhiroki wrote: > On 2016/09/09 08:28:37, nhiroki wrote: > > Hmmm..., chromeos ...
4 years, 3 months ago (2016-09-09 11:03:40 UTC) #26
yhirano
https://codereview.chromium.org/2325923002/diff/90001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2325923002/diff/90001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode695 third_party/WebKit/Source/core/workers/WorkerThread.cpp:695: void WorkerThread::setExitCode(const MutexLocker& lock, ExitCode exitCode) Sorry, can you ...
4 years, 3 months ago (2016-09-12 09:14:48 UTC) #30
nhiroki
Thank you! https://codereview.chromium.org/2325923002/diff/90001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2325923002/diff/90001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode695 third_party/WebKit/Source/core/workers/WorkerThread.cpp:695: void WorkerThread::setExitCode(const MutexLocker& lock, ExitCode exitCode) On ...
4 years, 3 months ago (2016-09-12 09:25:25 UTC) #31
yhirano
lgtm
4 years, 3 months ago (2016-09-12 10:15:05 UTC) #32
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/2325923002/110001
4 years, 3 months ago (2016-09-12 12:05:10 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/291349)
4 years, 3 months ago (2016-09-12 16:59:50 UTC) #40
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/2325923002/110001
4 years, 3 months ago (2016-09-12 22:11:57 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:110001)
4 years, 3 months ago (2016-09-12 23:31:26 UTC) #44
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 23:33:18 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ece89237c1fe0cf950bfb405d9c214b7b0fd7aff
Cr-Commit-Position: refs/heads/master@{#418103}

Powered by Google App Engine
This is Rietveld 408576698