Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_memory_madv__free__discardable__memory__posix.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_memory_madv__free__discardable__memory__posix.cc
--- src/3rdparty/chromium/base/memory/madv_free_discardable_memory_posix.cc.orig 2020-04-08 09:41:36 UTC | --- src/3rdparty/chromium/base/memory/madv_free_discardable_memory_posix.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/memory/madv_free_discardable_memory_posix.cc | +++ src/3rdparty/chromium/base/memory/madv_free_discardable_memory_posix.cc | ||||
@@ -271,7 +271,7 @@ void MadvFreeDiscardableMemoryPosix::SetKeepMemoryForT | @@ -296,7 +296,7 @@ bool MadvFreeDiscardableMemoryPosix::IsResident() cons | ||||
bool MadvFreeDiscardableMemoryPosix::IsResident() const { | bool MadvFreeDiscardableMemoryPosix::IsResident() const { | ||||
DFAKE_SCOPED_RECURSIVE_LOCK(thread_collision_warner_); | DFAKE_SCOPED_RECURSIVE_LOCK(thread_collision_warner_); | ||||
-#ifdef OS_MACOSX | -#if defined(OS_APPLE) | ||||
+#if defined(OS_MACOSX) || defined(OS_BSD) | +#if defined(OS_APPLE) || defined(OS_BSD) | ||||
std::vector<char> vec(allocated_pages_); | std::vector<char> vec(allocated_pages_); | ||||
#else | #else | ||||
std::vector<unsigned char> vec(allocated_pages_); | std::vector<unsigned char> vec(allocated_pages_); |