diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-27 03:03:53 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-27 03:03:53 +0000 |
commit | 252878e88968a67291099078862824dae7dc75c0 (patch) | |
tree | 12a96c1bba5474d47922f7bf804aa3fe8e72240e /libc/malloc_debug/malloc_debug.cpp | |
parent | 866374163a1164e1113a4d2e9e0453d68a06dfa3 (diff) | |
parent | 6fffb2332ca3be3abee84810b389a29b731887ee (diff) |
Snap for 4916303 from 6fffb2332ca3be3abee84810b389a29b731887ee to pi-qpr1-release
Change-Id: If8971618ca5839bb3044dd35acbd31189ebb613e
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
-rw-r--r-- | libc/malloc_debug/malloc_debug.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp index e83f73c32..b866e54fa 100644 --- a/libc/malloc_debug/malloc_debug.cpp +++ b/libc/malloc_debug/malloc_debug.cpp @@ -237,6 +237,9 @@ void debug_finalize() { return; } + // Turn off capturing allocations calls. + DebugDisableSet(true); + if (g_debug->config().options() & FREE_TRACK) { PointerData::VerifyAllFreed(); } @@ -246,15 +249,11 @@ void debug_finalize() { } if ((g_debug->config().options() & BACKTRACE) && g_debug->config().backtrace_dump_on_exit()) { - ScopedDisableDebugCalls disable; debug_dump_heap(android::base::StringPrintf("%s.%d.exit.txt", g_debug->config().backtrace_dump_prefix().c_str(), - getpid()) - .c_str()); + getpid()).c_str()); } - DebugDisableSet(true); - backtrace_shutdown(); delete g_debug; |