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

Issue 2018353005: cc: Fix data race in cc::TaskState::IsFinished. (Closed)

Created:
4 years, 6 months ago by prashant.n
Modified:
4 years, 6 months ago
Reviewers:
reveman
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix data race in cc::TaskState::IsFinished. The https://codereview.chromium.org/1866043006/ caused data race, as the worker and origin threads try to access the Task::state() at the same time. The member to be accessed on origin thread is now kept different as it was previously. Now Task::state() is used in worker thread. It also used in origin thread, when it is safe to be used. e.g. Task has been processed completely by task graph runner. BUG=615809, 615340 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/535763c29025109f45c9230ca57e35e535a1175a Cr-Commit-Position: refs/heads/master@{#396741}

Patch Set 1 #

Total comments: 1

Patch Set 2 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -35 lines) Patch
M cc/raster/raster_buffer_provider_perftest.cc View 1 3 chunks +31 lines, -12 lines 0 comments Download
M cc/raster/tile_task.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M cc/raster/tile_task.cc View 1 1 chunk +16 lines, -3 lines 0 comments Download
M cc/test/fake_tile_task_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_tile_task_runner.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 4 chunks +6 lines, -20 lines 0 comments Download
M cc/tiles/tile_task_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (7 generated)
reveman
https://codereview.chromium.org/2018353005/diff/1/cc/raster/tile_task.h File cc/raster/tile_task.h (right): https://codereview.chromium.org/2018353005/diff/1/cc/raster/tile_task.h#newcode32 cc/raster/tile_task.h:32: bool HasEnded() const; As we set this right after ...
4 years, 6 months ago (2016-05-30 14:04:47 UTC) #5
reveman
lgtm
4 years, 6 months ago (2016-05-30 14:44:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018353005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018353005/20001
4 years, 6 months ago (2016-05-30 15:40:26 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-05-30 17:39:15 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-05-30 17:40:40 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/535763c29025109f45c9230ca57e35e535a1175a
Cr-Commit-Position: refs/heads/master@{#396741}

Powered by Google App Engine
This is Rietveld 408576698