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

Issue 2028433004: Fix a bug with throttling and timer queue suspension (Closed)

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

Fix a bug with throttling and timer queue suspension Both the ThrottlingHelper and timer queue suspension (via SuspendTimerQueue/ResumeTimerQueue and SuspendTimerQueueWhenBackgrounded / ResumeTimerQueueWhenForegrounded) call TaskQueue::SetEnabled and it was possible for the ThrottlingHelper to re-enable a suspended queue by mistake. This patch prevents that from happening. BUG=616052 Committed: https://crrev.com/22ca5b9bce1453364fdb32979af7175ccf234e15 Cr-Commit-Position: refs/heads/master@{#397437}

Patch Set 1 #

Patch Set 2 : Make sure this works in general. #

Total comments: 10

Patch Set 3 : Sami's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -12 lines) Patch
M components/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 5 chunks +15 lines, -5 lines 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 chunk +61 lines, -0 lines 0 comments Download
M components/scheduler/renderer/throttling_helper.h View 1 2 2 chunks +18 lines, -1 line 0 comments Download
M components/scheduler/renderer/throttling_helper.cc View 1 2 3 chunks +25 lines, -5 lines 0 comments Download
M components/scheduler/renderer/throttling_helper_unittest.cc View 1 2 chunks +48 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
alex clarke (OOO till 29th)
4 years, 6 months ago (2016-05-31 15:37:16 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028433004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028433004/20001
4 years, 6 months ago (2016-05-31 15:37:16 UTC) #4
alex clarke (OOO till 29th)
4 years, 6 months ago (2016-05-31 17:02:27 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 17:09:05 UTC) #10
Sami
lgtm % comments. https://codereview.chromium.org/2028433004/diff/20001/components/scheduler/renderer/renderer_scheduler_impl.cc File components/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2028433004/diff/20001/components/scheduler/renderer/renderer_scheduler_impl.cc#newcode225 components/scheduler/renderer/renderer_scheduler_impl.cc:225: throttling_helper_->IncreaseThrottleRefCount(timer_task_queue.get()); Good catch with these two. ...
4 years, 6 months ago (2016-05-31 18:11:05 UTC) #11
alex clarke (OOO till 29th)
https://codereview.chromium.org/2028433004/diff/20001/components/scheduler/renderer/renderer_scheduler_impl.cc File components/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2028433004/diff/20001/components/scheduler/renderer/renderer_scheduler_impl.cc#newcode225 components/scheduler/renderer/renderer_scheduler_impl.cc:225: throttling_helper_->IncreaseThrottleRefCount(timer_task_queue.get()); On 2016/05/31 18:11:04, Sami wrote: > Good catch ...
4 years, 6 months ago (2016-06-02 13:51:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028433004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028433004/40001
4 years, 6 months ago (2016-06-02 13:51:33 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-02 16:14:58 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 16:16:52 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/22ca5b9bce1453364fdb32979af7175ccf234e15
Cr-Commit-Position: refs/heads/master@{#397437}

Powered by Google App Engine
This is Rietveld 408576698