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

Issue 9112029: Safe and reliable fix for 2 race conditions. (Closed)

Created:
8 years, 11 months ago by enal
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Safe and reliable fix for 2 race conditions. (We may want to revisit the issue later, implementing more performant one...) BUG=107933 TEST=Everything should work, and there would be no more crashes in AudioDevice. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117464

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M content/renderer/media/audio_device.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/media/audio_device.cc View 1 2 chunks +1 line, -8 lines 4 comments Download

Messages

Total messages: 18 (0 generated)
enal
Chris, can you please take a look at the fix. We may want to return ...
8 years, 11 months ago (2012-01-06 01:58:12 UTC) #1
Chris Rogers
Hi Eugene, thanks for taking the time to debug this and discover the causes. I'm ...
8 years, 11 months ago (2012-01-06 02:32:30 UTC) #2
enal1
I was driving home and thinking about the change, and now I believe there are ...
8 years, 11 months ago (2012-01-06 03:01:52 UTC) #3
Chris Rogers
Just wanted to clarify some things - sorry if this is already very clear to ...
8 years, 11 months ago (2012-01-06 03:22:24 UTC) #4
enal
Verified that AudioDevice has proper ref counting, so there is no race condition in the ...
8 years, 11 months ago (2012-01-06 18:04:13 UTC) #5
Chris Rogers
http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc File content/renderer/media/audio_device.cc (right): http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc#newcode120 content/renderer/media/audio_device.cc:120: completion.Wait(); Is there a case where the time-out is ...
8 years, 11 months ago (2012-01-06 18:26:28 UTC) #6
enal
On 2012/01/06 18:26:28, Chris Rogers wrote: > http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc > File content/renderer/media/audio_device.cc (right): > > http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc#newcode120 ...
8 years, 11 months ago (2012-01-06 18:56:56 UTC) #7
no longer working on chromium
The reason of adding a timeout for the WaitableEvent is to avoid blocking the Stop() ...
8 years, 11 months ago (2012-01-09 09:43:33 UTC) #8
Ami GONE FROM CHROMIUM
drive-by On 2012/01/09 09:43:33, xians1 wrote: > The reason of adding a timeout for the ...
8 years, 11 months ago (2012-01-09 18:01:54 UTC) #9
enal1
In any case, let's check in that fix, and after that anybody can work on ...
8 years, 11 months ago (2012-01-09 22:07:36 UTC) #10
enal1
ping... On Mon, Jan 9, 2012 at 2:07 PM, Eugene Nalimov <enal@google.com> wrote: > In ...
8 years, 11 months ago (2012-01-10 17:31:09 UTC) #11
Chris Rogers
This seems fine if Shijing and Henrik are comfortable with it.
8 years, 11 months ago (2012-01-10 17:47:50 UTC) #12
henrika (OOO until Aug 14)
Shijing is on vacation but Tommi has been involved in these discussions so I am ...
8 years, 11 months ago (2012-01-12 12:20:46 UTC) #13
tommi (sloooow) - chröme
http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc File content/renderer/media/audio_device.cc (right): http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc#newcode120 content/renderer/media/audio_device.cc:120: completion.Wait(); On 2012/01/06 18:26:28, Chris Rogers wrote: > Is ...
8 years, 11 months ago (2012-01-12 13:13:07 UTC) #14
enal
On 2012/01/12 13:13:07, tommi wrote: > http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc > File content/renderer/media/audio_device.cc (right): > > http://codereview.chromium.org/9112029/diff/6001/content/renderer/media/audio_device.cc#newcode120 > ...
8 years, 11 months ago (2012-01-12 17:27:52 UTC) #15
tommi (sloooow) - chröme
sure. I'll volunteer. lgtm. On Thu, Jan 12, 2012 at 6:27 PM, <enal@chromium.org> wrote: > ...
8 years, 11 months ago (2012-01-12 17:36:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enal@chromium.org/9112029/6001
8 years, 11 months ago (2012-01-12 17:46:09 UTC) #17
commit-bot: I haz the power
8 years, 11 months ago (2012-01-12 19:00:22 UTC) #18
Change committed as 117464

Powered by Google App Engine
This is Rietveld 408576698