commit | b2eceb6468b8683c90b8c6504bf0e1c01ba08e75 | [log] [tgz] |
---|---|---|
author | Yan Wang <yawanng@google.com> | Thu Apr 30 15:48:21 2020 -0700 |
committer | Yan Wang <yawanng@google.com> | Thu Apr 30 18:16:58 2020 -0700 |
tree | 160b81e344cfb0deae48c92ca8a17cd88c9e2df8 | |
parent | 69e3aad47cacd419e194fca1e5a95158dc50aee0 [diff] |
perfetto: Use a global map to control the access of state change subjects. These subjects are used to managed by the callback, which is assumed to only be triggered by perfetto thread. However, iorap also calls this callback to handle too many perfetto tracing instance. Add a global map to manage them to avoid use-after-free bug. Bug: 153627573 Change-Id: Id31b992438914b3b1cfba0cd693999897c3a52fe