Index: base/trace_event/winheap_dump_provider_win.cc |
diff --git a/base/trace_event/winheap_dump_provider_win.cc b/base/trace_event/winheap_dump_provider_win.cc |
index 82bb01646f9f909e2fd13b8062e355314efb4b40..d56d8d348b12ef3cd8ae814a4ffbc8ceba629eab 100644 |
--- a/base/trace_event/winheap_dump_provider_win.cc |
+++ b/base/trace_event/winheap_dump_provider_win.cc |
@@ -6,6 +6,7 @@ |
#include <windows.h> |
+#include "base/debug/profiler.h" |
#include "base/trace_event/process_memory_dump.h" |
#include "base/win/windows_version.h" |
@@ -59,6 +60,13 @@ bool WinHeapDumpProvider::OnMemoryDump(ProcessMemoryDump* pmd) { |
if (base::win::GetVersion() < base::win::VERSION_VISTA) |
return false; |
+// Disable this dump provider for the SyzyASan instrumented build |
+// because they don't support the heap walking functions yet. |
+#if defined(SYZYASAN) |
+ if (base::debug::IsBinaryInstrumented()) |
+ return false; |
+#endif |
+ |
// Retrieves the number of heaps in the current process. |
DWORD number_of_heaps = ::GetProcessHeaps(0, NULL); |
WinHeapInfo all_heap_info = {0}; |