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

Issue 148373004: Abort expensive AudioManager methods once shutdown starts. (Closed)

Created:
6 years, 10 months ago by DaleCurtis
Modified:
6 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Abort expensive AudioManager methods once shutdown starts. Crash reports show streams being created after shutdown starts, which is wasteful behavior and should be avoided. Shutdown is tracked via a new flag which can be checked on the audio thread to early exit stream creation early. BUG=none TEST=none

Patch Set 1 #

Patch Set 2 : Atomics. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M media/audio/audio_manager_base.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 7 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
DaleCurtis
WDYT?
6 years, 10 months ago (2014-02-12 23:12:00 UTC) #1
scherkus (not reviewing)
found this in the depths of my inbox ... does this still need to be ...
6 years, 10 months ago (2014-02-26 04:55:10 UTC) #2
DaleCurtis
yup, should speed up shutdown by up to a few hundred ms when there's pending ...
6 years, 10 months ago (2014-02-26 18:59:55 UTC) #3
scherkus (not reviewing)
On 2014/02/26 18:59:55, DaleCurtis wrote: > yup, should speed up shutdown by up to a ...
6 years, 10 months ago (2014-02-27 03:56:22 UTC) #4
DaleCurtis
Ah good catch, yes the |is_shutdown_| flag should be set atomically in Shutdown() if we ...
6 years, 9 months ago (2014-02-27 19:13:31 UTC) #5
scherkus (not reviewing)
On 2014/02/27 19:13:31, DaleCurtis wrote: > Ah good catch, yes the |is_shutdown_| flag should be ...
6 years, 9 months ago (2014-02-27 19:23:37 UTC) #6
DaleCurtis
Sadly UMA stats are shutdown before we get to AudioManager destruction. It's also not easy ...
6 years, 9 months ago (2014-03-01 00:37:13 UTC) #7
scherkus (not reviewing)
On 2014/03/01 00:37:13, DaleCurtis wrote: > Sadly UMA stats are shutdown before we get to ...
6 years, 9 months ago (2014-03-01 00:45:26 UTC) #8
DaleCurtis
6 years, 9 months ago (2014-03-04 22:25:50 UTC) #9
Closing then.

Powered by Google App Engine
This is Rietveld 408576698