New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 613812 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit 24 days ago
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 599863



Sign in to add a comment

Separate out members needed in RunOnWorkerThread() and OnTaskCompleted() in tasks.

Project Member Reported by prashan...@samsung.com, May 21 2016

Issue description

As worker thread and origin threads run in parallel, following things should be obeyed.

1. Members passed to RunOnWorkerThread(), must be thread safe.
2. Members which are needed for OnTaskCompleted() can be non thread safe and should be in separate private structure.
 

Comment 1 by vmp...@chromium.org, May 24 2016

Specifically, Tile class is not thread safe and we've avoided having it in the task up until recent refactors. 
Project Member

Comment 2 by bugdroid1@chromium.org, May 28 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7c2861c68d1a70d00b07adb28ee27d87b71110d5

commit 7c2861c68d1a70d00b07adb28ee27d87b71110d5
Author: prashant.n <prashant.n@samsung.com>
Date: Sat May 28 08:53:23 2016

cc: Ensure members needed on task completion get called on valid thread.

Few members needed for task completion are not thread safe. e.g. Tile.
They should not be called on worker thread. To ensure these are called
on valid thread, always access them with thread_checker.

BUG= 613812 
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review-Url: https://codereview.chromium.org/2003353003
Cr-Commit-Position: refs/heads/master@{#396637}

[modify] https://crrev.com/7c2861c68d1a70d00b07adb28ee27d87b71110d5/cc/tiles/tile_manager.cc

Status: Fixed (was: Assigned)

Sign in to add a comment