Descriptioncc: 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 #
Messages
Total messages: 8 (4 generated)
|