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

Issue 2653643002: Move has_incoming_immediate_work to the TaskQueueManager (Closed)

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

Move has_incoming_immediate_work to the TaskQueueManager Reduces the number of locks per DoWork by moving the has_incoming_immediate_work set to the TaskQueueManager. Previously TimeDomain::UpdateWorkQueues was called for every time domain (at least 2 time domains, maybe more in some circumstances) which would take a lock. Now we only need the one lock. Originally part of https://codereview.chromium.org/2546423002/ BUG=578176 Review-Url: https://codereview.chromium.org/2653643002 Cr-Commit-Position: refs/heads/master@{#445772} Committed: https://chromium.googlesource.com/chromium/src/+/cdf5b1fbdbfed58d0a0450597d3666c5a2159c30

Patch Set 1 #

Patch Set 2 : Reflow comment. #

Patch Set 3 : Rebased #

Patch Set 4 : Add some tracing #

Total comments: 9

Patch Set 5 : Don't try to be quite so clever in TaskQueueManager::ComputeDelayTillNextTask #

Messages

Total messages: 29 (21 generated)
alex clarke (OOO till 29th)
3 years, 11 months ago (2017-01-23 15:22:50 UTC) #2
alex clarke (OOO till 29th)
3 years, 11 months ago (2017-01-23 15:35:12 UTC) #6
Sami
https://codereview.chromium.org/2653643002/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/2653643002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode335 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:335: bool ensure_do_work_posted = To separate the concerns a bit, ...
3 years, 11 months ago (2017-01-24 14:52:41 UTC) #13
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2653643002/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/2653643002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc#newcode335 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc:335: bool ensure_do_work_posted = On 2017/01/24 14:52:40, Sami wrote: ...
3 years, 11 months ago (2017-01-24 15:28:14 UTC) #14
alex clarke (OOO till 29th)
https://codereview.chromium.org/2653643002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc (right): https://codereview.chromium.org/2653643002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc#newcode357 third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:357: base::AutoLock lock(any_thread_lock_); On 2017/01/24 15:28:14, alex clarke wrote: > ...
3 years, 11 months ago (2017-01-24 15:29:11 UTC) #17
Sami
lgtm, thanks!
3 years, 11 months ago (2017-01-24 18:23:02 UTC) #24
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/2653643002/80001
3 years, 11 months ago (2017-01-24 19:05:16 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 19:11:44 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cdf5b1fbdbfed58d0a0450597d36...

Powered by Google App Engine
This is Rietveld 408576698