diff options
author | Eric Arseneau <earseneau@google.com> | 2018-12-26 10:15:01 -0800 |
---|---|---|
committer | Eric Arseneau <earseneau@google.com> | 2018-12-26 10:15:01 -0800 |
commit | 8ac092c7e1e542e5e9e773ca51625ff0332282c8 (patch) | |
tree | 2578d0db922c8dc7f74ac7778dbd9bf5b82c1e2f /libc/malloc_debug/malloc_debug.cpp | |
parent | 0182c4a48982ec0f2a3f3b53fa215b0a89f042b9 (diff) | |
parent | 796198ff347ffc5ee9cd47171ce490d01b314370 (diff) |
Merge SPL-2018-12-05
Change-Id: Ie0c13ea02c7bde9a46616847b4cdf4c81ccc5db6
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; |