| Index: third_party/tcmalloc/chromium/src/heap-checker.cc
|
| diff --git a/third_party/tcmalloc/chromium/src/heap-checker.cc b/third_party/tcmalloc/chromium/src/heap-checker.cc
|
| index 6fb2a62c6125da69439a9959215067e451ef59c7..5d39a474b254263d4a8800d96883ba7847c87c33 100644
|
| --- a/third_party/tcmalloc/chromium/src/heap-checker.cc
|
| +++ b/third_party/tcmalloc/chromium/src/heap-checker.cc
|
| @@ -1424,9 +1424,9 @@ static SpinLock alignment_checker_lock(SpinLock::LINKER_INITIALIZED);
|
| if (VLOG_IS_ON(15)) {
|
| // log call stacks to help debug how come something is not a leak
|
| HeapProfileTable::AllocInfo alloc;
|
| - if (!heap_profile->FindAllocDetails(ptr, &alloc)) {
|
| - RAW_LOG(FATAL, "FindAllocDetails failed on ptr %p", ptr);
|
| - }
|
| + bool r = heap_profile->FindAllocDetails(ptr, &alloc);
|
| + r = r; // suppress compiler warning in non-debug mode
|
| + RAW_DCHECK(r, ""); // sanity
|
| RAW_LOG(INFO, "New live %p object's alloc stack:", ptr);
|
| for (int i = 0; i < alloc.stack_depth; ++i) {
|
| RAW_LOG(INFO, " @ %p", alloc.call_stack[i]);
|
|
|