summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-02-14 10:23:58 -0800
committerChristopher Ferris <cferris@google.com>2019-02-14 10:23:58 -0800
commit2822856e984f39f72dcbb444e3cf95628092360a (patch)
treed68e537e9130de1d5e85a87fe1798dbc01fd633b /libc/malloc_hooks/malloc_hooks.cpp
parent1b82812635e35667df9d28e7416d4b02c2083dfe (diff)
Avoid heapprofd init when other hooks enabled.
All of the heapprofd code assumes that it's the only hook that has been enabled. Enforce that by disallowing heapprofd from enabling if malloc debug or malloc hooks have been enabled. Test: Ran all unit tests (bionic/malloc hooks/malloc debug/perfetto). Test: Enabled malloc debug ran perfetto integration tests and verified Test: that an error message goes to the log. Change-Id: I506fbf1c5b8e4052855531fa0d161f5de06e6c1a
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions