Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_trace__event_malloc__dump__provider.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_trace__event_malloc__dump__provider.cc
--- src/3rdparty/chromium/base/trace_event/malloc_dump_provider.cc.orig 2020-11-07 01:22:36 UTC | --- src/3rdparty/chromium/base/trace_event/malloc_dump_provider.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/trace_event/malloc_dump_provider.cc | +++ src/3rdparty/chromium/base/trace_event/malloc_dump_provider.cc | ||||
@@ -17,6 +17,8 @@ | @@ -17,6 +17,8 @@ | ||||
#if defined(OS_MACOSX) | #if defined(OS_APPLE) | ||||
#include <malloc/malloc.h> | #include <malloc/malloc.h> | ||||
+#elif defined(OS_BSD) | +#elif defined(OS_BSD) | ||||
+#include <stdlib.h> | +#include <stdlib.h> | ||||
#else | #else | ||||
#include <malloc.h> | #include <malloc.h> | ||||
#endif | #endif | ||||
@@ -132,6 +134,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump | @@ -132,6 +134,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump | ||||
} | } | ||||
#elif defined(OS_FUCHSIA) | #elif defined(OS_FUCHSIA) | ||||
// TODO(fuchsia): Port, see https://crbug.com/706592. | // TODO(fuchsia): Port, see https://crbug.com/706592. | ||||
+#elif defined(OS_BSD) | +#elif defined(OS_BSD) | ||||
+ total_virtual_size = 0; | + total_virtual_size = 0; | ||||
+ allocated_objects_size = 0; | + allocated_objects_size = 0; | ||||
#else | #else | ||||
struct mallinfo info = mallinfo(); | struct mallinfo info = mallinfo(); | ||||
// In case of Android's jemalloc |arena| is 0 and the outer pages size is | // In case of Android's jemalloc |arena| is 0 and the outer pages size is |