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

Issue 2708963002: Fix potential DCHECK in TaskQueueThrottler::IncreaseThrottleRefCount (Closed)

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

Description

Fix potential DCHECK in TaskQueueThrottler::IncreaseThrottleRefCount If TaskQueueThrottler::IncreaseThrottleRefCount was called on a disabled task queue whose next task was delayed, then a DCHECK in OnTimeDomainHasDelayedWork could fire. This patch prevents that from happening. This may fix the cluster fuzz warning too. BUG=693096, 693798 Review-Url: https://codereview.chromium.org/2708963002 Cr-Commit-Position: refs/heads/master@{#451999} Committed: https://chromium.googlesource.com/chromium/src/+/85ed9bafd675dc129eebb238ac3c679d436e5d40

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix bug with re-enabling queue with immediate work #

Total comments: 2

Patch Set 3 : Addressing review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -14 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc View 1 2 3 chunks +63 lines, -14 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
alex clarke (OOO till 29th)
PTAL
3 years, 10 months ago (2017-02-21 17:44:05 UTC) #4
altimin
On 2017/02/21 17:44:05, alex clarke wrote: > PTAL lgtm with nits.
3 years, 10 months ago (2017-02-21 17:48:15 UTC) #6
altimin
https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc (right): https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc#newcode266 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc:266: ThrotlingADisaledQueueDoesNotPostPumpThrottledTasksLocked) { Nit: throttling, disabled. https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc#newcode279 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc:279: ThrotlingADisaledQueueDoesNotPostPumpThrottledTasksLocked_DelayedTask) { ...
3 years, 10 months ago (2017-02-21 17:48:31 UTC) #7
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc (right): https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc#newcode266 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc:266: ThrotlingADisaledQueueDoesNotPostPumpThrottledTasksLocked) { On 2017/02/21 17:48:31, altimin wrote: > ...
3 years, 10 months ago (2017-02-21 18:17:46 UTC) #8
Sami
https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc (right): https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc#newcode266 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc:266: ThrotlingADisaledQueueDoesNotPostPumpThrottledTasksLocked) { On 2017/02/21 17:48:31, altimin wrote: > Nit: ...
3 years, 10 months ago (2017-02-21 18:21:02 UTC) #11
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc (right): https://codereview.chromium.org/2708963002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc#newcode266 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc:266: ThrotlingADisaledQueueDoesNotPostPumpThrottledTasksLocked) { On 2017/02/21 18:21:02, Sami wrote: > ...
3 years, 10 months ago (2017-02-21 20:52:12 UTC) #15
alex clarke (OOO till 29th)
https://codereview.chromium.org/2708963002/diff/20001/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/2708963002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode811 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:811: main_thread_only().time_domain->OnQueueHasImmediateWork(this); On 2017/02/21 18:21:02, Sami wrote: > Should we ...
3 years, 10 months ago (2017-02-21 20:52:30 UTC) #16
Sami
lgtm
3 years, 10 months ago (2017-02-22 11:41:57 UTC) #25
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/2708963002/40001
3 years, 10 months ago (2017-02-22 11:42:58 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 11:46:59 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/85ed9bafd675dc129eebb238ac3c...

Powered by Google App Engine
This is Rietveld 408576698