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

Issue 1903733003: cc: Implement states for Task for stricter control. (Closed)

Created:
4 years, 8 months ago by prashant.n
Modified:
4 years, 7 months ago
CC:
blink-worker-reviews_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, kinuko+watch, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@land_merge_tile_task_runner
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Implement states for Task for stricter control. Implement states for task which gives stricter control for managing states of a task in single variable vs. multiple variables. The states are as given below. NEW, SCHEDULED, RUNNING, FINISHED, CANCELED As TaskGraphWorkQueue manages life cycle of task, this patch also moves state management to TaskGraphWorkQueue from all TaskGraphRunners, i.e. WillRun() and DidRun() are moved to places where |work_queue_| inserts task in |running_tasks| and |completed_tasks_| respectively. This also ensures that task if gets scheduled must end in either FINISHED or CANCELED state and will help catch any bugs which go out of expected behavior for task state. BUG=599863 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d67b4b01e6b969df93348eaff249f1d190a72afd Cr-Commit-Position: refs/heads/master@{#389538}

Patch Set 1 : wip #

Patch Set 2 : wip #

Patch Set 3 : fixed unit/perf tests #

Patch Set 4 : nits #

Total comments: 6

Patch Set 5 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -62 lines) Patch
M cc/raster/single_thread_task_graph_runner.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M cc/raster/synchronous_task_graph_runner.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/raster/task.h View 1 2 3 4 2 chunks +39 lines, -6 lines 0 comments Download
M cc/raster/task.cc View 1 2 3 4 1 chunk +49 lines, -13 lines 0 comments Download
M cc/raster/task_graph_runner_perftest.cc View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M cc/raster/task_graph_work_queue.cc View 1 2 8 chunks +12 lines, -2 lines 0 comments Download
M cc/raster/tile_task.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 7 chunks +10 lines, -17 lines 0 comments Download
M cc/raster/tile_task_worker_pool_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/gpu_image_decode_controller_unittest.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/raster_worker_pool.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 33 (14 generated)
prashant.n
Wip patch for implementing states for task.
4 years, 8 months ago (2016-04-20 13:32:54 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903733003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903733003/60001
4 years, 8 months ago (2016-04-21 09:40:15 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/216342)
4 years, 8 months ago (2016-04-21 09:44:28 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903733003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903733003/60001
4 years, 8 months ago (2016-04-21 11:25:42 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 12:26:46 UTC) #13
ericrk
Nice change. A few comments. https://codereview.chromium.org/1903733003/diff/60001/cc/raster/task.cc File cc/raster/task.cc (right): https://codereview.chromium.org/1903733003/diff/60001/cc/raster/task.cc#newcode21 cc/raster/task.cc:21: return (value_ == SCHEDULED); ...
4 years, 8 months ago (2016-04-21 18:24:26 UTC) #14
prashant.n
https://codereview.chromium.org/1903733003/diff/60001/cc/raster/task.cc File cc/raster/task.cc (right): https://codereview.chromium.org/1903733003/diff/60001/cc/raster/task.cc#newcode21 cc/raster/task.cc:21: return (value_ == SCHEDULED); On 2016/04/21 18:24:25, ericrk wrote: ...
4 years, 8 months ago (2016-04-22 03:57:56 UTC) #15
prashant.n
ptal
4 years, 8 months ago (2016-04-22 04:10:02 UTC) #16
prashant.n
+ esprehn@ for RasterWorkerPool.
4 years, 8 months ago (2016-04-22 14:37:50 UTC) #18
esprehn
Jam@ is maybe a better reviewer. It's strange that the worker pool isn't in some ...
4 years, 8 months ago (2016-04-23 02:10:31 UTC) #20
prashant.n
On 2016/04/23 02:10:31, esprehn wrote: > Jam@ is maybe a better reviewer. It's strange that ...
4 years, 8 months ago (2016-04-23 02:53:37 UTC) #21
jam
On 2016/04/23 02:53:37, prashant.n wrote: > On 2016/04/23 02:10:31, esprehn wrote: > > Jam@ is ...
4 years, 8 months ago (2016-04-25 15:46:04 UTC) #23
ericrk
cc lgtm Raster worker pool also lgtm, but you'll need to wait for owners there.
4 years, 8 months ago (2016-04-25 16:21:06 UTC) #24
piman
lgtm for content
4 years, 8 months ago (2016-04-25 18:24:16 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903733003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903733003/80001
4 years, 8 months ago (2016-04-25 18:31:00 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-25 19:36:21 UTC) #29
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/d67b4b01e6b969df93348eaff249f1d190a72afd Cr-Commit-Position: refs/heads/master@{#389538}
4 years, 8 months ago (2016-04-25 19:37:18 UTC) #31
prashant.n
This crashes few perf tests, fixing soon in https://codereview.chromium.org/1910213005/
4 years, 7 months ago (2016-04-28 07:33:25 UTC) #32
prashant.n
4 years, 7 months ago (2016-04-29 08:34:43 UTC) #33
Message was sent while issue was closed.
On 2016/04/28 07:33:25, prashant.n wrote:
> This crashes few perf tests, fixing soon in

The crashes are without this CL also. Filed a bug for it
https://bugs.chromium.org/p/chromium/issues/detail?id=607818

Powered by Google App Engine
This is Rietveld 408576698