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

Issue 2359493002: Prevent redundant DoWorks due to canceled delayed tasks (v2) (Closed)

Created:
4 years, 3 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 3 months ago
Reviewers:
Sami, altimin
CC:
chromium-reviews, blink-reviews, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent redundant DoWorks due to canceled delayed tasks (v2) The TimeDomain now only knows about the first wake up per queue and the system tries to only have one pending delayed DoWork posted on the base runloop. Because of this any cancelled delayed tasks get removed by TaskQueueImpl::WakeUpForDelayedWork before a wakeup is requested. TimeDomain has been changed to take advantage of this new limitation and several redundant methods have now been removed. The bug which caused the revert of V1 has been fixed, specifically ThrottlingHelper::PumpThrottledTasks doesn't get broken by the new assumptions since we're no longer using ClearExpiredWakeups. BUG=638542, 605718 Committed: https://crrev.com/917d60230680d15af69e12a34a44bfd25ca4784c Cr-Commit-Position: refs/heads/master@{#420707}

Patch Set 1 #

Patch Set 2 : Try and fix ASAN issue #

Patch Set 3 : Added a test and removed some code we probably don't need. #

Total comments: 8

Patch Set 4 : Changes for Sami #

Total comments: 8

Patch Set 5 : Changes for Alexander #

Messages

Total messages: 62 (48 generated)
Sami
Overall looks like a nice simplification. https://codereview.chromium.org/2359493002/diff/40001/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/2359493002/diff/40001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode223 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:223: if (pending_task.delayed_run_time == ...
4 years, 3 months ago (2016-09-22 11:20:55 UTC) #15
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2359493002/diff/40001/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/2359493002/diff/40001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode223 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:223: if (pending_task.delayed_run_time == On 2016/09/22 11:20:54, Sami wrote: ...
4 years, 3 months ago (2016-09-22 16:24:21 UTC) #17
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/2359493002/60001
4 years, 3 months ago (2016-09-23 09:24:06 UTC) #23
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 3 months ago (2016-09-23 09:24:08 UTC) #25
altimin
non-owner lgtm with a couple of nits. https://codereview.chromium.org/2359493002/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/2359493002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode251 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:251: if (delayed_run_time ...
4 years, 3 months ago (2016-09-23 10:04:15 UTC) #28
Sami
Thank you, lgtm.
4 years, 3 months ago (2016-09-23 10:13:45 UTC) #29
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/2359493002/80001
4 years, 3 months ago (2016-09-23 10:52:16 UTC) #34
alex clarke (OOO till 29th)
https://codereview.chromium.org/2359493002/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/2359493002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode251 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:251: if (delayed_run_time < time_domain_now) { On 2016/09/23 10:04:15, altimin ...
4 years, 3 months ago (2016-09-23 11:08:04 UTC) #35
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/298490)
4 years, 3 months ago (2016-09-23 11:10:50 UTC) #37
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/2359493002/80001
4 years, 3 months ago (2016-09-23 13:37:23 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/262982)
4 years, 3 months ago (2016-09-23 13:57:53 UTC) #56
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/2359493002/80001
4 years, 3 months ago (2016-09-23 16:54:11 UTC) #58
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-23 20:01:30 UTC) #60
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 20:03:12 UTC) #62
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/917d60230680d15af69e12a34a44bfd25ca4784c
Cr-Commit-Position: refs/heads/master@{#420707}

Powered by Google App Engine
This is Rietveld 408576698