diff options
author | Bill Yi <byi@google.com> | 2018-11-28 18:33:28 -0800 |
---|---|---|
committer | Bill Yi <byi@google.com> | 2018-11-28 18:33:28 -0800 |
commit | 814964e05423c32859f622e9ac7f1c5430bcec6e (patch) | |
tree | 8ece454f1a2f1f150002a294f9639e4cf1e62d33 /libc/malloc_debug/malloc_debug.cpp | |
parent | 196632fb3c59ebbf1184d791a3e7124dd0c3f22b (diff) | |
parent | dbf4b11b1158137e55342d250f624196a8912e07 (diff) |
Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release
Change-Id: Ic9f65be968a41b3419a655102838a432f8d3b62d
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; |