Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_trace__event_process__memory__dump.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_trace__event_process__memory__dump.cc
--- src/3rdparty/chromium/base/trace_event/process_memory_dump.cc.orig 2018-11-13 18:25:11 UTC | --- src/3rdparty/chromium/base/trace_event/process_memory_dump.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/trace_event/process_memory_dump.cc | +++ src/3rdparty/chromium/base/trace_event/process_memory_dump.cc | ||||
@@ -93,7 +93,7 @@ size_t ProcessMemoryDump::CountResidentBytes(void* sta | @@ -95,7 +95,7 @@ size_t ProcessMemoryDump::CountResidentBytes(void* sta | ||||
#if defined(OS_WIN) | #if defined(OS_WIN) | ||||
std::unique_ptr<PSAPI_WORKING_SET_EX_INFORMATION[]> vec( | std::unique_ptr<PSAPI_WORKING_SET_EX_INFORMATION[]> vec( | ||||
new PSAPI_WORKING_SET_EX_INFORMATION[max_vec_size]); | new PSAPI_WORKING_SET_EX_INFORMATION[max_vec_size]); | ||||
-#elif defined(OS_MACOSX) | -#elif defined(OS_APPLE) | ||||
+#elif defined(OS_MACOSX) || defined(OS_BSD) | +#elif defined(OS_APPLE) || defined(OS_BSD) | ||||
std::unique_ptr<char[]> vec(new char[max_vec_size]); | std::unique_ptr<char[]> vec(new char[max_vec_size]); | ||||
#elif defined(OS_POSIX) || defined(OS_FUCHSIA) | #elif defined(OS_POSIX) || defined(OS_FUCHSIA) | ||||
std::unique_ptr<unsigned char[]> vec(new unsigned char[max_vec_size]); | std::unique_ptr<unsigned char[]> vec(new unsigned char[max_vec_size]); |