a04e75e95a
Submitted by: Matthias Wolf (via github) MFH: 2021Q1 Security: https://www.vuxml.org/freebsd/4ed0e43c-5cef-11eb-bafd-3065ec8fd3ec.html
21 lines
839 B
C++
21 lines
839 B
C++
--- base/system/sys_info.h.orig 2021-01-18 21:28:45 UTC
|
|
+++ base/system/sys_info.h
|
|
@@ -208,6 +208,8 @@ class BASE_EXPORT SysInfo {
|
|
// On Desktop this returns true when memory <= 512MB.
|
|
static bool IsLowEndDevice();
|
|
|
|
+ static uint64_t MaxSharedMemorySize();
|
|
+
|
|
private:
|
|
FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
|
|
FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo);
|
|
@@ -217,7 +219,7 @@ class BASE_EXPORT SysInfo {
|
|
static bool IsLowEndDeviceImpl();
|
|
static HardwareInfo GetHardwareInfoSync();
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || \
|
|
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) || \
|
|
defined(OS_AIX)
|
|
static int64_t AmountOfAvailablePhysicalMemory(
|
|
const SystemMemoryInfoKB& meminfo);
|