diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-06-15 14:54:51 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-06-15 14:54:51 -0400 |
| commit | e81f04fa53e7e01afdc834d9c22b5c982c98f59b (patch) | |
| tree | 763d6d68516ca9d184ddd2402978adcc4027a99d /www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h | |
| parent | 92e45e47c29ec037842c4a34ebc0c14143d413ff (diff) | |
This is due to the following two reasons:
1. it's very out of date compared with current ports tree (like by 2+
years!)
- some of the ports here were mainly just updates I didn't upstream,
which have since now been part of openbsd, like verilator
2. removing dependencies is a lot of headache to stay in sync and/or for
ports I no longer use
- e.g. dbus is very difficult to remove in a desktop while patching
to remove from gtk and downstream
- I don't want to spend more time reducing number of dependencies
when I can be working instead. I no longer have as much free time
as I did in high school :(
Diffstat (limited to 'www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h')
| -rw-r--r-- | www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h | 21 |
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 @@ | |||
| 1 | Index: 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; | ||
