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

Unified Diff: third_party/tcmalloc/chromium/src/tests/heap-checker_unittest.cc

Issue 9667026: Revert 126020 - 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/tests/heap-checker_unittest.cc
===================================================================
--- third_party/tcmalloc/chromium/src/tests/heap-checker_unittest.cc (revision 126022)
+++ third_party/tcmalloc/chromium/src/tests/heap-checker_unittest.cc (working copy)
@@ -101,10 +101,10 @@
#include "base/logging.h"
#include "base/commandlineflags.h"
#include "base/thread_lister.h"
-#include <gperftools/heap-checker.h>
+#include <google/heap-checker.h>
#include "memory_region_map.h"
-#include <gperftools/malloc_extension.h>
-#include <gperftools/stacktrace.h>
+#include <google/malloc_extension.h>
+#include <google/stacktrace.h>
// On systems (like freebsd) that don't define MAP_ANONYMOUS, use the old
// form of the name instead.
@@ -1381,13 +1381,7 @@
RunHidden(NewCallback(MakeALeak, &arr));
Use(&arr);
LogHidden("Leaking", arr);
- if (FLAGS_test_cancel_global_check) {
- HeapLeakChecker::CancelGlobalCheck();
- } else {
- // Verify we can call NoGlobalLeaks repeatedly without deadlocking
- HeapLeakChecker::NoGlobalLeaks();
- HeapLeakChecker::NoGlobalLeaks();
- }
+ if (FLAGS_test_cancel_global_check) HeapLeakChecker::CancelGlobalCheck();
return Pass();
// whole-program leak-check should (with very high probability)
// catch the leak of arr (10 * sizeof(int) bytes)
@@ -1402,13 +1396,7 @@
Use(&arr2);
LogHidden("Loop leaking", arr1);
LogHidden("Loop leaking", arr2);
- if (FLAGS_test_cancel_global_check) {
- HeapLeakChecker::CancelGlobalCheck();
- } else {
- // Verify we can call NoGlobalLeaks repeatedly without deadlocking
- HeapLeakChecker::NoGlobalLeaks();
- HeapLeakChecker::NoGlobalLeaks();
- }
+ if (FLAGS_test_cancel_global_check) HeapLeakChecker::CancelGlobalCheck();
return Pass();
// whole-program leak-check should (with very high probability)
// catch the leak of arr1 and arr2 (4 * sizeof(void*) bytes)

Powered by Google App Engine
This is Rietveld 408576698