Disable tcmalloc for audio cast devices
In cast audio devices there are a number of libraries that statically link in libbase, resulting in each library having its own copy of tcmalloc. During static initialization of a library, the tcmalloc in that library is called directly, and tcmalloc can call sbrk() which is not thread safe. By disabling tcmalloc, we avoid the possibility of multiple calls to sbrk() causing crashes on cast audio devices. Bug: 1002281 Test: Build and run cast_shell and chrome Change-Id: Ib5707d0132596ea73cc8dd9ef68fac049334e17c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1795754 Commit-Queue: Rob Hueber <rhueber@google.com> Reviewed-by:Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#695336}
Showing
Please register or sign in to comment