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

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

Created:
4 years, 3 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 3 months ago
Reviewers:
Sami
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 To achieve this we make a few changes: 1. We only register the next wakeup with the TimeDomain, rather than all of them. 2. MoveReadyDelayedTasksToDelayedWorkQueue now registers the next wakeup (if any). Since it removes all canceled delayed tasks from the front of the priority queue this has the effect of not scheduling wakeups for cancelled tasks. 3. Tweaking the TaskQueueManager level delayed DoWork de-duplication logic to only post a delayed DoWork if the task is meant to run before any previously registered delayed DoWorks. BUG=638542, 605718 Committed: https://crrev.com/929cbb9f92b5570867c3842c80778243db81a013 Cr-Commit-Position: refs/heads/master@{#418556}

Patch Set 1 #

Patch Set 2 : Fix test failure #

Patch Set 3 : Rebased #

Patch Set 4 : Change tack, only post the next wakeup with the TimeDomain #

Patch Set 5 : Added a commant. #

Total comments: 6

Patch Set 6 : Changes for Sami #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -27 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 3 4 5 6 chunks +39 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc View 1 2 3 4 5 2 chunks +165 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/time_domain.h View 1 2 3 4 5 2 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/time_domain.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 40 (29 generated)
alex clarke (OOO till 29th)
PTAL!
4 years, 3 months ago (2016-09-09 16:33:45 UTC) #4
Sami
Here's a dumb question: when scheduling the next wake up in the time domain, why ...
4 years, 3 months ago (2016-09-12 15:30:32 UTC) #13
alex clarke (OOO till 29th)
On 2016/09/12 15:30:32, Sami wrote: > Here's a dumb question: when scheduling the next wake ...
4 years, 3 months ago (2016-09-13 14:40:34 UTC) #18
Sami
lgtm -- I like how this clarifies the responsibility of the TimeDomain. https://codereview.chromium.org/2320403003/diff/80001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h ...
4 years, 3 months ago (2016-09-13 17:42:54 UTC) #26
alex clarke (OOO till 29th)
https://codereview.chromium.org/2320403003/diff/80001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h (right): https://codereview.chromium.org/2320403003/diff/80001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h#newcode177 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h:177: void MoveReadyDelayedTasksToDelayedWorkQueue(LazyNow* lazy_now); On 2016/09/13 17:42:53, Sami wrote: > ...
4 years, 3 months ago (2016-09-14 09:04:24 UTC) #27
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/2320403003/100001
4 years, 3 months ago (2016-09-14 09:04:41 UTC) #30
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/292768)
4 years, 3 months ago (2016-09-14 11:32:59 UTC) #33
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/2320403003/100001
4 years, 3 months ago (2016-09-14 12:55:06 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-14 14:30:06 UTC) #37
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/929cbb9f92b5570867c3842c80778243db81a013 Cr-Commit-Position: refs/heads/master@{#418556}
4 years, 3 months ago (2016-09-14 14:32:08 UTC) #39
Ken Russell (switch to Gerrit)
4 years, 3 months ago (2016-09-19 18:20:11 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2353473003/ by kbr@chromium.org.

The reason for reverting is: Suspect that this CL caused breakage in Gmail and
Hangouts per http://crbug.com/647484 .
.

Powered by Google App Engine
This is Rietveld 408576698