The initial number of SchedulerWorkers created in SchedulerWorkerPoolImpl::Start() used to be one more than the number of tasks posted before Start() was called. This is incorrect because the number of workers created here should not exceed the |worker_capacity_| of the pool.
Bug: 754265 Change-Id: Id14f68a8883c6e9ecf3a0a6f15d32d82a4f0bfda Reviewed-on: https://chromium-review.googlesource.com/606108 Commit-Queue: Jeffrey He
e1961ea Make initial number of SchedulerWorkers be at most |worker_capacity_|.
base/task_scheduler/scheduler_worker_pool_impl.cc | 14 +++++++++++---
base/task_scheduler/scheduler_worker_pool_impl.h | 3 +++
.../scheduler_worker_pool_impl_unittest.cc | 20 ++++++++++++++++++++
3 files changed, 34 insertions(+), 3 deletions(-)