commit | f90036285d193c6903fe8c2ffc4b27ae40701c2d | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Tue Mar 10 13:15:08 2020 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Tue Mar 10 22:29:12 2020 +0000 |
tree | 9b9a264025963188e857adb7e3d9466e32342ed9 | |
parent | c62ad13ad8da6b31168f0d9f3e5f2a770ed0bbee [diff] |
audiopolicy: Remove global static initializers Replace global static instances of non-primitive types with function static instances. The latter get initialized on the first call to the function instead of module load time. This also gets rid of ASAN UAF errors reported during unit test execution. Bug: 150649241 Test: atest audiopolicy_tests Test: atest audio_health_tests (for ASAN-instrumented libraries and test) Change-Id: I514c9205b9d3e7a3f0a1d8aa71d71fcc792e7a7b