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

Issue 3026028: Patch pulseaudio memory leak (Closed)

Created:
10 years, 5 months ago by davejcool
Modified:
9 years, 7 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

An earlier check-in (r51786, Issue 2769008) caused a memory leak on the build bots when PulseAudio was initialized on a separate worker thread. This change calls PulseAudioMixer::InitSync() so the init happens on the calling thread. For some reason, the init finishes cleanly on one thread, but not the other. BUG=48553 (and http://code.google.com/p/chromium-os/issues/detail?id=5141) TEST=Valgrind should not have PulseAudio related memory leaks, suppression 48553, or assertion failures. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53992

Patch Set 1 #

Patch Set 2 : touchup #

Total comments: 5

Patch Set 3 : Added IsValid() #

Total comments: 1

Patch Set 4 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M chrome/browser/chromeos/audio_handler.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/audio_handler.cc View 1 2 3 1 chunk +5 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
davejcool
This patch should stop the PulseAudio memory leak and assert seen on the build bots.
10 years, 5 months ago (2010-07-27 22:37:50 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/3026028/diff/2001/3001 File chrome/browser/chromeos/audio_handler.cc (right): http://codereview.chromium.org/3026028/diff/2001/3001#newcode102 chrome/browser/chromeos/audio_handler.cc:102: DLOG(INFO) << "OnMixerInitialized, success = " << connected_; just ...
10 years, 5 months ago (2010-07-27 22:44:25 UTC) #2
Daniel Erat
I haven't been following this code closely, so I'll defer to others for the actual ...
10 years, 5 months ago (2010-07-27 22:44:45 UTC) #3
davejcool
http://codereview.chromium.org/3026028/diff/2001/3001 File chrome/browser/chromeos/audio_handler.cc (right): http://codereview.chromium.org/3026028/diff/2001/3001#newcode102 chrome/browser/chromeos/audio_handler.cc:102: DLOG(INFO) << "OnMixerInitialized, success = " << connected_; If ...
10 years, 5 months ago (2010-07-27 23:39:09 UTC) #4
scherkus (not reviewing)
LGTM w/ daniel's comments + if my comment doesn't force us to change any other ...
10 years, 5 months ago (2010-07-28 00:49:26 UTC) #5
davejcool
This just has an IsValid() call added. But since this change means going back to ...
10 years, 5 months ago (2010-07-28 01:39:35 UTC) #6
scherkus (not reviewing)
ok LGTM http://codereview.chromium.org/3026028/diff/9001/5002 File chrome/browser/chromeos/audio_handler.cc (right): http://codereview.chromium.org/3026028/diff/9001/5002#newcode99 chrome/browser/chromeos/audio_handler.cc:99: if (mixer_->CheckState() == PulseAudioMixer::READY) how about: return ...
10 years, 4 months ago (2010-07-28 17:49:29 UTC) #7
davejcool
10 years, 4 months ago (2010-07-28 18:22:59 UTC) #8
I think all looks good now.  I'm ready to land this patch once the tree opens.

Powered by Google App Engine
This is Rietveld 408576698