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

Issue 2640553003: cc: Fix a hang in image controller unittests by release task lock. (Closed)

Created:
3 years, 11 months ago by vmpstr
Modified:
3 years, 11 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix a hang in image controller unittests by release task lock. This patch ensures that when we run tasks in our TestWorkerThread, we release the lock before running the task. If we don't release the lock, then the task itself can go and acquire a lock in the image controller. However, if we're currently in QueueImageTask in the image controller (ie we have that lock), and we're posting a task, we try to acquire the task runner lock. All in all, this ends up in a cyclical deadlock: - thread 1 has A, wants B. - thread 2 has B, wants A. This patch ensures that thread 1 above, releases A before running a task that wants B. R=enne@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2640553003 Cr-Commit-Position: refs/heads/master@{#444237} Committed: https://chromium.googlesource.com/chromium/src/+/7330b6a4d60bb3c17e4931ba0deed4c253cb5ee0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M cc/tiles/image_controller_unittest.cc View 1 chunk +14 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
vmpstr
Please take a look.
3 years, 11 months ago (2017-01-18 01:22:15 UTC) #2
enne (OOO)
lgtm
3 years, 11 months ago (2017-01-18 01:29:38 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640553003/1
3 years, 11 months ago (2017-01-18 01:36:22 UTC) #5
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 01:53:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7330b6a4d60bb3c17e4931ba0dee...

Powered by Google App Engine
This is Rietveld 408576698