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

Issue 1287003003: [scheduler]: Fix a bug with non-nestable tasks. (Closed)

Created:
5 years, 4 months ago by rmcilroy
Modified:
5 years, 4 months ago
Reviewers:
Sami
CC:
chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler]: Fix a bug with non-nestable tasks. Avoids a DCHECK in TaskQueueImpl::Task::enqueue_order() caused by TaskIsOlderThanQueuedTasks being called on an empty task if the previous task was a non-nestable task while the scheduler is running on a nested message loop. Committed: https://crrev.com/c0d31ab28e21c048f40584ace3b0a8aca5723c17 Cr-Commit-Position: refs/heads/master@{#343026}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -3 lines) Patch
M components/scheduler/child/task_queue_manager.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M components/scheduler/child/task_queue_manager_unittest.cc View 1 chunk +47 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (6 generated)
rmcilroy
PTAL, thanks.
5 years, 4 months ago (2015-08-12 11:39:09 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287003003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287003003/1
5 years, 4 months ago (2015-08-12 11:39:21 UTC) #4
Sami
https://codereview.chromium.org/1287003003/diff/1/components/scheduler/child/task_queue_manager.cc File components/scheduler/child/task_queue_manager.cc (right): https://codereview.chromium.org/1287003003/diff/1/components/scheduler/child/task_queue_manager.cc#newcode307 components/scheduler/child/task_queue_manager.cc:307: *out_previous_task = pending_task; Hmm, should we just ignore out_previous_task ...
5 years, 4 months ago (2015-08-12 11:47:51 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 12:33:00 UTC) #7
rmcilroy
https://codereview.chromium.org/1287003003/diff/1/components/scheduler/child/task_queue_manager.cc File components/scheduler/child/task_queue_manager.cc (right): https://codereview.chromium.org/1287003003/diff/1/components/scheduler/child/task_queue_manager.cc#newcode307 components/scheduler/child/task_queue_manager.cc:307: *out_previous_task = pending_task; On 2015/08/12 11:47:51, Sami wrote: > ...
5 years, 4 months ago (2015-08-12 13:08:27 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287003003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287003003/20001
5 years, 4 months ago (2015-08-12 13:16:16 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 14:01:49 UTC) #12
Sami
lgtm. Thanks for the test too.
5 years, 4 months ago (2015-08-12 15:36:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287003003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287003003/20001
5 years, 4 months ago (2015-08-12 15:58:27 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-12 16:02:43 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c0d31ab28e21c048f40584ace3b0a8aca5723c17 Cr-Commit-Position: refs/heads/master@{#343026}
5 years, 4 months ago (2015-08-12 16:03:18 UTC) #17
rmcilroy
5 years, 4 months ago (2015-08-13 14:54:52 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1287333002/ by rmcilroy@chromium.org.

The reason for reverting is: Causing crashes on Mac.

BUG=520524.

Powered by Google App Engine
This is Rietveld 408576698