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

Issue 2412983003: TaskScheduler: Put an ALIVE SchedulerWorker on top of the idle stack. (Closed)

Created:
4 years, 2 months ago by fdoray
Modified:
4 years, 2 months ago
Reviewers:
robliao, gab
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskScheduler: Put an ALIVE SchedulerWorker on top of the idle stack. Before this CL, the initial state of the worker on top of the idle stack was DETACHED while the initial state of the worker at the bottom of the idle stack was ALIVE. The first task posted to the worker pool woke up the DETACHED worker on top of the idle stack. When few tasks were posted, the ALIVE worker at the bottom of the idle stack detached without running a single task. This CL makes the worker on top of the idle stack ALIVE and the worker at the bottom of the idle stack DETACHED. BUG=553459 Committed: https://crrev.com/08cf332fd47764c77a62fb6ebdeb88ff0ae17ede Cr-Commit-Position: refs/heads/master@{#424908}

Patch Set 1 #

Patch Set 2 : self-review #

Total comments: 2

Patch Set 3 : CR robliao #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M base/task_scheduler/scheduler_worker_pool_impl.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
fdoray
PTAL
4 years, 2 months ago (2016-10-12 20:14:24 UTC) #2
robliao
lgtm https://codereview.chromium.org/2412983003/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc File base/task_scheduler/scheduler_worker_pool_impl.cc (right): https://codereview.chromium.org/2412983003/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode701 base/task_scheduler/scheduler_worker_pool_impl.cc:701: // The SchedulerWorker on top of the idle ...
4 years, 2 months ago (2016-10-12 20:22:17 UTC) #3
fdoray
https://codereview.chromium.org/2412983003/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc File base/task_scheduler/scheduler_worker_pool_impl.cc (right): https://codereview.chromium.org/2412983003/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode701 base/task_scheduler/scheduler_worker_pool_impl.cc:701: // The SchedulerWorker on top of the idle stack ...
4 years, 2 months ago (2016-10-12 21:18:44 UTC) #4
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/2412983003/40001
4 years, 2 months ago (2016-10-12 21:19:27 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/47238)
4 years, 2 months ago (2016-10-12 23:06:55 UTC) #9
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/2412983003/40001
4 years, 2 months ago (2016-10-12 23:11:29 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-12 23:45:02 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/08cf332fd47764c77a62fb6ebdeb88ff0ae17ede Cr-Commit-Position: refs/heads/master@{#424908}
4 years, 2 months ago (2016-10-12 23:47:06 UTC) #14
gab
4 years, 2 months ago (2016-10-17 16:42:00 UTC) #16
Message was sent while issue was closed.
Nice catch :), lgtm

Powered by Google App Engine
This is Rietveld 408576698