Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TaskSchedulerWorkerPoolHistogramTest.NumTasksBeforeCleanup failur…
…e on Fuschia. This test assumes that 3 tasks posted to the same sequence from the main thread will be scheduled on the same worker. This is incorrect because of this: 1. Worker #1: Runs a tasks and empties the sequence, without adding itself to the idle stack yet. 2. Posting thread: Posts another task to the now empty sequence. Wakes up a new worker, since worker #1 isn't on the idle stack yet. 3. Worker #2: Runs the tasks, violating the expectation that the 3 initial tasks run on the same worker. This CL fixes the issue by starting the pool *after* the 3 tasks have been posted. Bug: 844009 Change-Id: Idcc74e8bea90b94ecba8e3a52abc4091c89044b2 Reviewed-on: https://chromium-review.googlesource.com/1064016 Reviewed-by: Gabriel Charette <gab@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#559534}
- Loading branch information