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

Issue 2785943004: DCHECK tasks posted by TaskRunner::PostTask (Closed)

Created:
3 years, 8 months ago by tzik
Modified:
3 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, sadrul, vmpstr+watch_chromium.org, robliao+watch_chromium.org, jam, fdoray+watch_chromium.org, darin-cc_chromium.org, blink-reviews, gab+watch_chromium.org, kinuko+watch, scheduler-bugs_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DCHECK tasks posted by TaskRunner::PostTask This CL adds DCHECKs to detect null task posted to TaskRunner::PostTask implementations, so that we can detect it earlier with meaningful stack trace. BUG=706854 Review-Url: https://codereview.chromium.org/2785943004 Cr-Commit-Position: refs/heads/master@{#461766} Committed: https://chromium.googlesource.com/chromium/src/+/c69769616ffc1d266a8c4af8be6b957e2f305da8

Patch Set 1 #

Patch Set 2 : revert unneeded #

Patch Set 3 : test fix #

Patch Set 4 : win build fix #

Total comments: 2

Patch Set 5 : s/CHECK/DCHECK/ except for TaskQueueImpl #

Total comments: 2

Patch Set 6 : s/CHECK/DCHECK/g #

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M base/deferred_sequenced_task_runner.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/message_loop/incoming_task_queue.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/task_scheduler/delayed_task_manager.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/task_scheduler/priority_queue_unittest.cc View 1 2 3 4 5 2 chunks +7 lines, -5 lines 0 comments Download
M base/task_scheduler/scheduler_worker_pool_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/task_scheduler/sequence.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/task_scheduler/sequence_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/threading/worker_pool_posix.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/threading/worker_pool_win.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/after_startup_task_utils.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/categorized_worker_pool.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (35 generated)
tzik
PTAL to: gab: //base sky: //chrome kinuko: //content alexclarke: task_queue_impl.cc
3 years, 8 months ago (2017-03-31 11:23:59 UTC) #15
Sami
Would a DCHECK() be sufficient? That should help catch most of these at development time, ...
3 years, 8 months ago (2017-03-31 14:06:57 UTC) #19
Sami
https://codereview.chromium.org/2785943004/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc (right): https://codereview.chromium.org/2785943004/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode221 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:221: base::AutoLock lock(any_thread_lock_); I think we just need to instrument ...
3 years, 8 months ago (2017-03-31 14:08:55 UTC) #20
sky
I prefer DCHECK too. On Fri, Mar 31, 2017 at 4:23 AM, <tzik@chromium.org> wrote: > ...
3 years, 8 months ago (2017-03-31 14:30:56 UTC) #21
sky
I prefer DCHECK too. On Fri, Mar 31, 2017 at 4:23 AM, <tzik@chromium.org> wrote: > ...
3 years, 8 months ago (2017-03-31 14:30:56 UTC) #22
tzik
On 2017/03/31 14:06:57, Sami wrote: > Would a DCHECK() be sufficient? That should help catch ...
3 years, 8 months ago (2017-03-31 17:02:33 UTC) #23
kinuko
On 2017/03/31 17:02:33, tzik wrote: > On 2017/03/31 14:06:57, Sami wrote: > > Would a ...
3 years, 8 months ago (2017-04-03 07:19:13 UTC) #24
Sami
Landing something like this temporarily sounds fine to me.
3 years, 8 months ago (2017-04-03 10:12:53 UTC) #25
tzik
On 2017/04/03 07:19:13, kinuko wrote: > On 2017/03/31 17:02:33, tzik wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-04-03 13:57:12 UTC) #28
tzik
https://codereview.chromium.org/2785943004/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc (right): https://codereview.chromium.org/2785943004/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode221 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:221: base::AutoLock lock(any_thread_lock_); On 2017/03/31 14:08:55, Sami wrote: > I ...
3 years, 8 months ago (2017-04-03 13:57:22 UTC) #29
Sami
Thanks, third_party/WebKit/Source/platform/scheduler/ lgtm
3 years, 8 months ago (2017-04-03 15:04:38 UTC) #30
gab
lgtm w/ comment (and promise to not lift ReleaseBlock-Beta on http://crbug.com/706854 so that this CHECK ...
3 years, 8 months ago (2017-04-03 17:06:17 UTC) #33
gab
On 2017/04/03 17:06:17, gab wrote: > lgtm w/ comment (and promise to not lift ReleaseBlock-Beta ...
3 years, 8 months ago (2017-04-03 17:06:46 UTC) #34
kinuko
Thanks! content/ lgtm
3 years, 8 months ago (2017-04-03 20:53:15 UTC) #35
tzik
I identified the culprit in another minidump on Windows. And I'm fixing it separately. Let ...
3 years, 8 months ago (2017-04-04 11:36:26 UTC) #40
gab
Thanks, lgtm++
3 years, 8 months ago (2017-04-04 15:16:05 UTC) #47
sky
LGTM
3 years, 8 months ago (2017-04-04 17:05:22 UTC) #48
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/2785943004/120001
3 years, 8 months ago (2017-04-04 17:21:17 UTC) #51
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 17:28:40 UTC) #54
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c69769616ffc1d266a8c4af8be6b...

Powered by Google App Engine
This is Rietveld 408576698