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

Unified Diff: third_party/tcmalloc/chromium/src/libc_override.h

Issue 7430007: Merge tcmalloc r111 (perftools v. 1.8) with the chromium/ branch. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/libc_override.h
===================================================================
--- third_party/tcmalloc/chromium/src/libc_override.h (revision 93000)
+++ third_party/tcmalloc/chromium/src/libc_override.h (working copy)
@@ -69,7 +69,15 @@
static void ReplaceSystemAlloc() { PatchWindowsFunctions(); }
#elif defined(_WIN32) && !defined(WIN32_DO_PATCHING)
+// On Windows we define the allocation functions in
+// base/allocator/allocator_shim.cc, so we can't include
+// libc_override_redefine.h here.
+// We also need to define ReplaceSystemAlloc() somewhere.
+#if 0
#include "libc_override_redefine.h"
+#else
+static void ReplaceSystemAlloc() { }
+#endif
#elif defined(__APPLE__)
#include "libc_override_osx.h"

Powered by Google App Engine
This is Rietveld 408576698