Index: third_party/tcmalloc/chromium/src/debugallocation.cc |
diff --git a/third_party/tcmalloc/chromium/src/debugallocation.cc b/third_party/tcmalloc/chromium/src/debugallocation.cc |
index 7b09e412ec36b2f96a4fdce807fca3a43fba4f1d..6a4f2865d4b432fe9b8bb30ad67fca9e9e500d7a 100644 |
--- a/third_party/tcmalloc/chromium/src/debugallocation.cc |
+++ b/third_party/tcmalloc/chromium/src/debugallocation.cc |
@@ -1430,3 +1430,11 @@ extern "C" PERFTOOLS_DLL_DECL struct mallinfo tc_mallinfo(void) __THROW { |
extern "C" PERFTOOLS_DLL_DECL size_t tc_malloc_size(void* ptr) __THROW { |
return MallocExtension::instance()->GetAllocatedSize(ptr); |
} |
+ |
+#if defined(OS_LINUX) |
+extern "C" PERFTOOLS_DLL_DECL void* tc_malloc_skip_new_handler(size_t size) { |
+ void* result = DebugAllocate(size, MallocBlock::kMallocType); |
+ MallocHook::InvokeNewHook(result, size); |
+ return result; |
+} |
+#endif |