summaryrefslogtreecommitdiff
path: root/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h')
-rw-r--r--www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h21
1 files changed, 0 insertions, 21 deletions
diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h
deleted file mode 100644
index fab7c0c..0000000
--- a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h
+++ /dev/null
@@ -1,21 +0,0 @@
1Index: Source/bmalloc/bmalloc/AvailableMemory.h
2--- Source/bmalloc/bmalloc/AvailableMemory.h.orig
3+++ Source/bmalloc/bmalloc/AvailableMemory.h
4@@ -32,7 +32,7 @@ namespace bmalloc {
5
6 BEXPORT size_t availableMemory();
7
8-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD)
9+#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD)
10 struct MemoryStatus {
11 MemoryStatus(size_t memoryFootprint, double percentAvailableMemoryInUse)
12 : memoryFootprint(memoryFootprint)
13@@ -61,7 +61,7 @@ inline double percentAvailableMemoryInUse()
14
15 inline bool isUnderMemoryPressure()
16 {
17-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD)
18+#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD)
19 return percentAvailableMemoryInUse() > memoryPressureThreshold;
20 #else
21 return false;