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

Issue 1259583006: Reland: Explicitly track the scheduler task enqueueing order in a new field (Closed)

Created:
5 years, 4 months ago by alex clarke (OOO till 29th)
Modified:
5 years, 4 months ago
Reviewers:
alexclarke, 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

Explicitly track the scheduler task enqueueing order in a new field Task enqueueing_order for delayed tasks is not known until the task's delay has expired. Preciously we were storing this in sequence_num but that broke FlowEvents because the computed IDs changed mid-flight. In addition this patch no longer zeros out delayed_run_time since that appears to be used by some tracing code. BUG=515720 Committed: https://crrev.com/8c6b40b808787f00fef268e6c06eb02a0f8f690e Cr-Commit-Position: refs/heads/master@{#342113} Committed: https://crrev.com/879c9fb02f86ea29bec4ee45aa5e705948422dc1 Cr-Commit-Position: refs/heads/master@{#342166}

Patch Set 1 #

Patch Set 2 : Fix comment #

Total comments: 9

Patch Set 3 : Moved Task struct #

Total comments: 8

Patch Set 4 : Chanegs for sami #

Patch Set 5 : Fix dcheck #

Patch Set 6 : Add SCHEDULER_EXPORT to TaskQueueImpl::Task #

Patch Set 7 : Fix the DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -172 lines) Patch
M components/scheduler/child/task_queue_impl.h View 1 2 3 4 5 6 chunks +55 lines, -23 lines 0 comments Download
M components/scheduler/child/task_queue_impl.cc View 1 2 3 16 chunks +63 lines, -43 lines 0 comments Download
M components/scheduler/child/task_queue_manager.h View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M components/scheduler/child/task_queue_manager.cc View 1 2 3 4 chunks +7 lines, -11 lines 0 comments Download
M components/scheduler/child/task_queue_manager_unittest.cc View 1 chunk +42 lines, -0 lines 0 comments Download
M components/scheduler/child/task_queue_selector_unittest.cc View 1 2 3 4 5 6 13 chunks +31 lines, -27 lines 0 comments Download
M components/scheduler/child/task_queue_sets.h View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M components/scheduler/child/task_queue_sets.cc View 1 2 1 chunk +40 lines, -31 lines 0 comments Download
M components/scheduler/child/task_queue_sets_unittest.cc View 1 2 3 10 chunks +26 lines, -26 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
alex clarke (OOO till 29th)
5 years, 4 months ago (2015-08-04 17:00:03 UTC) #2
picksi
Drive by comment... is "age" the correct name for this? I understand (a little!) that ...
5 years, 4 months ago (2015-08-05 09:09:10 UTC) #3
Sami
Thanks for the quick fix. I agree with Simon about "age" being a somewhat odd ...
5 years, 4 months ago (2015-08-05 11:27:34 UTC) #4
alex clarke (OOO till 29th)
On 2015/08/05 09:09:10, picksi wrote: > Drive by comment... is "age" the correct name for ...
5 years, 4 months ago (2015-08-05 13:17:55 UTC) #5
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/1259583006/diff/20001/components/scheduler/child/task_queue_impl.cc File components/scheduler/child/task_queue_impl.cc (right): https://codereview.chromium.org/1259583006/diff/20001/components/scheduler/child/task_queue_impl.cc#newcode13 components/scheduler/child/task_queue_impl.cc:13: : PendingTask(tracked_objects::Location(), base::Closure()) {} On 2015/08/05 11:27:34, Sami ...
5 years, 4 months ago (2015-08-05 14:32:44 UTC) #6
Sami
https://codereview.chromium.org/1259583006/diff/40001/components/scheduler/child/task_queue_impl.cc File components/scheduler/child/task_queue_impl.cc (right): https://codereview.chromium.org/1259583006/diff/40001/components/scheduler/child/task_queue_impl.cc#newcode104 components/scheduler/child/task_queue_impl.cc:104: task_queue_manager_->GetNextSequenceNumber(), Is the indentation right here? https://codereview.chromium.org/1259583006/diff/40001/components/scheduler/child/task_queue_impl.cc#newcode208 components/scheduler/child/task_queue_impl.cc:208: return ...
5 years, 4 months ago (2015-08-05 14:51:15 UTC) #7
alex clarke (OOO till 29th)
https://codereview.chromium.org/1259583006/diff/40001/components/scheduler/child/task_queue_impl.cc File components/scheduler/child/task_queue_impl.cc (right): https://codereview.chromium.org/1259583006/diff/40001/components/scheduler/child/task_queue_impl.cc#newcode104 components/scheduler/child/task_queue_impl.cc:104: task_queue_manager_->GetNextSequenceNumber(), On 2015/08/05 14:51:15, Sami wrote: > Is the ...
5 years, 4 months ago (2015-08-05 15:33:05 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/1259583006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/60001
5 years, 4 months ago (2015-08-05 15:34:04 UTC) #10
Sami
Thanks, lgtm!
5 years, 4 months ago (2015-08-05 15:41:12 UTC) #11
Sami
nit: the description is a little out of date.
5 years, 4 months ago (2015-08-05 15:41:36 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/81508) mac_chromium_compile_dbg_ng on ...
5 years, 4 months ago (2015-08-05 15:43:39 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259583006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/80001
5 years, 4 months ago (2015-08-05 15:45:52 UTC) #16
commit-bot: I haz the power
Dry run: 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/88961)
5 years, 4 months ago (2015-08-05 16:24:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259583006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/80001
5 years, 4 months ago (2015-08-05 16:32:34 UTC) #21
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/88991)
5 years, 4 months ago (2015-08-05 17:19:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259583006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/80001
5 years, 4 months ago (2015-08-06 09:51:01 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/67563)
5 years, 4 months ago (2015-08-06 10:54:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259583006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/100001
5 years, 4 months ago (2015-08-06 10:58:21 UTC) #30
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/89631)
5 years, 4 months ago (2015-08-06 12:44:08 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259583006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/100001
5 years, 4 months ago (2015-08-06 12:47:02 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-06 14:37:23 UTC) #35
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/8c6b40b808787f00fef268e6c06eb02a0f8f690e Cr-Commit-Position: refs/heads/master@{#342113}
5 years, 4 months ago (2015-08-06 14:38:04 UTC) #36
mfomitchev
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1277923002/ by mfomitchev@chromium.org. ...
5 years, 4 months ago (2015-08-06 15:34:06 UTC) #37
alex clarke (OOO till 29th)
Thanks, I think that's unrelated. I've fixed the DCHECK and will try to reland.
5 years, 4 months ago (2015-08-06 17:30:15 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259583006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259583006/120001
5 years, 4 months ago (2015-08-06 17:31:19 UTC) #41
waffles
On 2015/08/06 17:31:19, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 4 months ago (2015-08-06 17:48:54 UTC) #42
mfomitchev
Hey Alex, A bunch of components_unittests failed on Android Tests with crrev.com/1259583006. It hasn't caught ...
5 years, 4 months ago (2015-08-06 17:51:50 UTC) #43
chromium-reviews
The problem on the android bots and on the desktop bots is the same thing, ...
5 years, 4 months ago (2015-08-06 18:12:45 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 4 months ago (2015-08-06 19:04:47 UTC) #45
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 19:05:36 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/879c9fb02f86ea29bec4ee45aa5e705948422dc1
Cr-Commit-Position: refs/heads/master@{#342166}

Powered by Google App Engine
This is Rietveld 408576698