Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: third_party/tcmalloc/chromium/src/free_list.cc

Issue 9666033: Experiment for updating the tcmalloc chromium branch to r144 (gperftools 2.0). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/free_list.cc
diff --git a/third_party/tcmalloc/chromium/src/free_list.cc b/third_party/tcmalloc/chromium/src/free_list.cc
index 842f391c4593071dee2127063fde5a05f78f6913..b4176da83ad4918a8149884a028b641c8c2a2764 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
« no previous file with comments | « third_party/tcmalloc/chromium/src/free_list.h ('k') | third_party/tcmalloc/chromium/src/google/heap-checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698