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

Unified Diff: third_party/tcmalloc/chromium/src/heap-checker-bcad.cc

Issue 10384117: Add a chromium version abort function for tcmalloc: Abort(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/heap-checker-bcad.cc
===================================================================
--- third_party/tcmalloc/chromium/src/heap-checker-bcad.cc (revision 135692)
+++ third_party/tcmalloc/chromium/src/heap-checker-bcad.cc (working copy)
@@ -44,8 +44,8 @@
// consider that allocation to be a leak, even though it's not (since
// the allocated object is reachable from global data and hence "live").
-#include <stdlib.h> // for abort()
#include <gperftools/malloc_extension.h>
+#include "base/abort.h"
// A dummy variable to refer from heap-checker.cc. This is to make
// sure this file is not optimized out by the linker.
@@ -76,7 +76,7 @@
++count_;
}
~HeapLeakCheckerGlobalPrePost() {
- if (count_ <= 0) abort();
+ if (count_ <= 0) tcmalloc::Abort();
--count_;
if (count_ == 0) HeapLeakChecker_AfterDestructors();
}

Powered by Google App Engine
This is Rietveld 408576698