commit | 646d36608a1fe1fc27d71c79f2fb0838be7e4ef2 | [log] [tgz] |
---|---|---|
author | Ryan Savitski <rsavitski@google.com> | Mon Apr 08 12:53:29 2019 +0100 |
committer | Ryan Savitski <rsavitski@google.com> | Mon Apr 08 12:53:29 2019 +0100 |
tree | ac7c2b1d20b5f0a0ccb7931b74f720b465feb948 | |
parent | 094a5527955836c210acb17ebffa744233963159 [diff] |
heapprofd_client: avoid destruction re-entrancy issues, and global destructor (1) use unhooked malloc functions for the g_client shared_ptr. (2) wrap g_client in a base::NoDestructor to avoid the global destructor (and therefore the associated at-exit issues). See bug & the contents of the patch for a detailed description of the issue. Plus new e2e test that would've failed without this fix. Bug: 129749217 Change-Id: I3d1c34ae133e9b9a43d2a6b6be2ceddbc90ba307
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.