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

Issue 2085603002: Fixing deadlock by removing unnesessary lock in AudioRendererMixer (Closed)

Created:
4 years, 6 months ago by o1ka
Modified:
4 years, 6 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, Henrik Grunell, tommi (sloooow) - chröme, vanellope-cl_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing deadlock by removing unnesessary lock in AudioRendererMixer Deadlock is like this: On main or media thread: ARMM::GetOutputDeviceInfo [takes |lock_|] -> AOD::GetOutputDeviceInfo -> waits for device authorization, which can be signalled on IO thread only On IO thread: AOD::CreateStreamOnIOThread/OnStateChanged* -> ARMM::OnRenderError [takes |lock_|], so OnDeviceAuthorized/OnIPCClosed will never be called and device authorization will never be signalled. *AOD::OnDeviceAuthorized itself does not deadlock it always signals event before calling OnRenderError() That lock in ARMM::GetOutputDeviceInfo is never needed, after all BUG=615589 Committed: https://crrev.com/c017b5d078463e7265b5bef1d34a25a57859293c Cr-Commit-Position: refs/heads/master@{#400735}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M media/base/audio_renderer_mixer.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
o1ka
Dale, PTAL.
4 years, 6 months ago (2016-06-20 17:08:23 UTC) #3
DaleCurtis
lgtm
4 years, 6 months ago (2016-06-20 17:15:38 UTC) #4
DaleCurtis
Nice find!
4 years, 6 months ago (2016-06-20 17:15:45 UTC) #5
DaleCurtis
(Sorry, should have caught this during review, we should almost never call into sinks under ...
4 years, 6 months ago (2016-06-20 17:16:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085603002/1
4 years, 6 months ago (2016-06-20 17:18:27 UTC) #8
o1ka
On 2016/06/20 17:16:17, DaleCurtis wrote: > (Sorry, should have caught this during review, we should ...
4 years, 6 months ago (2016-06-20 17:22:26 UTC) #9
DaleCurtis
On 2016/06/20 at 17:22:26, olka wrote: > On 2016/06/20 17:16:17, DaleCurtis wrote: > > (Sorry, ...
4 years, 6 months ago (2016-06-20 17:40:28 UTC) #10
o1ka
On 2016/06/20 17:40:28, DaleCurtis wrote: > On 2016/06/20 at 17:22:26, olka wrote: > > On ...
4 years, 6 months ago (2016-06-20 17:46:10 UTC) #11
DaleCurtis
On 2016/06/20 at 17:46:10, olka wrote: > On 2016/06/20 17:40:28, DaleCurtis wrote: > > On ...
4 years, 6 months ago (2016-06-20 17:55:48 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-20 18:34:45 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 18:39:55 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c017b5d078463e7265b5bef1d34a25a57859293c
Cr-Commit-Position: refs/heads/master@{#400735}

Powered by Google App Engine
This is Rietveld 408576698