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

Issue 2857103005: Exempt the Service Thread from BLOCK_SHUTDOWN DCHECKs (Closed)

Created:
3 years, 7 months ago by robliao
Modified:
3 years, 7 months ago
Reviewers:
gab, fdoray
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Exempt the Service Thread from BLOCK_SHUTDOWN DCHECKs In production, FileDescriptorWatchers can be leaky and post BLOCK_SHUTDOWN tasks in response to their notification. Stopping the service thread requires some non-trivial task lifetime fixes to do it correctly, so this was deemed the next best quick fix for redirection. BUG=717380 Review-Url: https://codereview.chromium.org/2857103005 Cr-Commit-Position: refs/heads/master@{#469461} Committed: https://chromium.googlesource.com/chromium/src/+/f10490bd9e23a11a75977d6c53e2571248a61900

Patch Set 1 #

Total comments: 10

Patch Set 2 : CR Feedback + Additional DCHECK_IS_ON due to the way DCHECKs are implemented #

Total comments: 15

Patch Set 3 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -4 lines) Patch
M base/task_scheduler/task_scheduler_impl.cc View 1 chunk +5 lines, -1 line 0 comments Download
M base/task_scheduler/task_scheduler_impl_unittest.cc View 1 2 2 chunks +79 lines, -0 lines 0 comments Download
M base/task_scheduler/task_tracker.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M base/task_scheduler/task_tracker.cc View 1 2 3 chunks +17 lines, -2 lines 0 comments Download
M base/task_scheduler/task_tracker_posix.h View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M base/task_scheduler/task_tracker_posix.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M base/threading/thread.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M base/threading/thread.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
robliao
3 years, 7 months ago (2017-05-03 19:59:11 UTC) #5
fdoray
lgtm w/ comments on comments and tests https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode29 base/task_scheduler/task_scheduler_impl_unittest.cc:29: #include "testing/gtest/include/gtest/gtest.h" ...
3 years, 7 months ago (2017-05-03 20:34:33 UTC) #8
robliao
https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode29 base/task_scheduler/task_scheduler_impl_unittest.cc:29: #include "testing/gtest/include/gtest/gtest.h" On 2017/05/03 20:34:33, fdoray wrote: > #include ...
3 years, 7 months ago (2017-05-03 21:11:17 UTC) #10
gab
https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_tracker.cc#newcode403 base/task_scheduler/task_tracker.cc:403: // FileDescriptorWatcher. Indicate that while these tasks shouldn't be ...
3 years, 7 months ago (2017-05-04 17:36:11 UTC) #17
robliao
https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_tracker.cc#newcode403 base/task_scheduler/task_tracker.cc:403: // FileDescriptorWatcher. On 2017/05/04 17:36:11, gab wrote: > Indicate ...
3 years, 7 months ago (2017-05-04 17:43:24 UTC) #18
robliao
https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_tracker_posix.h File base/task_scheduler/task_tracker_posix.h (right): https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_tracker_posix.h#newcode46 base/task_scheduler/task_tracker_posix.h:46: void set_service_thread_handle( On 2017/05/04 17:43:24, robliao wrote: > On ...
3 years, 7 months ago (2017-05-04 17:44:06 UTC) #19
gab
lgtm w/ comments https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2857103005/diff/20001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode500 base/task_scheduler/task_scheduler_impl_unittest.cc:500: controller.release(); inline controller.release() in the leak ...
3 years, 7 months ago (2017-05-04 18:11:58 UTC) #20
fdoray
still lgtm https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode461 base/task_scheduler/task_scheduler_impl_unittest.cc:461: scheduler_.PostDelayedTaskWithTraits(FROM_HERE, TaskTraits(), On 2017/05/03 21:11:17, robliao wrote: ...
3 years, 7 months ago (2017-05-04 18:37:32 UTC) #21
robliao
https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2857103005/diff/1/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode461 base/task_scheduler/task_scheduler_impl_unittest.cc:461: scheduler_.PostDelayedTaskWithTraits(FROM_HERE, TaskTraits(), On 2017/05/04 18:37:32, fdoray wrote: > On ...
3 years, 7 months ago (2017-05-04 19:01:49 UTC) #23
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/2857103005/60001
3 years, 7 months ago (2017-05-04 19:03:09 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 20:54:02 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f10490bd9e23a11a75977d6c53e2...

Powered by Google App Engine
This is Rietveld 408576698