summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/chromium/src/free_list.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/chromium/src/free_list.cc')
-rw-r--r--third_party/tcmalloc/chromium/src/free_list.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/tcmalloc/chromium/src/free_list.cc b/third_party/tcmalloc/chromium/src/free_list.cc
index 842f391..b4176da 100644
--- a/third_party/tcmalloc/chromium/src/free_list.cc
+++ b/third_party/tcmalloc/chromium/src/free_list.cc
@@ -64,16 +64,18 @@
#if defined(TCMALLOC_USE_DOUBLYLINKED_FREELIST)
+using tcmalloc::kCrash;
+
// TODO(jar): We should use C++ rather than a macro here.
#define MEMORY_CHECK(v1, v2) \
- if (v1 != v2) CRASH("Memory corruption detected.\n")
+ if (v1 != v2) Log(kCrash, __FILE__, __LINE__, "Memory corruption detected.\n")
namespace {
void EnsureNonLoop(void* node, void* next) {
// We only have time to do minimal checking. We don't traverse the list, but
// only look for an immediate loop (cycle back to ourself).
if (node != next) return;
- CRASH("Circular loop in list detected: %p\n", next);
+ Log(kCrash, __FILE__, __LINE__, "Circular loop in list detected: %p\n", next);
}
// Returns value of the |previous| pointer w/out running a sanity