The branch stable/13 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3a1bb7f8d989cc5413147996d1935ac44790bbb3

commit 3a1bb7f8d989cc5413147996d1935ac44790bbb3
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2022-09-16 21:08:03 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2022-09-30 00:29:10 +0000

    jemalloc: Define SWAP_RESERVE_* if not provided by the system headers
    
    (cherry picked from commit 0e2af3b59a1517521e9fb3aab61fa06e5ce25c2c)
---
 contrib/jemalloc/src/pages.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/jemalloc/src/pages.c b/contrib/jemalloc/src/pages.c
index 6b00eb0cb919..6405bb528984 100644
--- a/contrib/jemalloc/src/pages.c
+++ b/contrib/jemalloc/src/pages.c
@@ -464,10 +464,12 @@ os_overcommits_sysctl(void) {
        }
 #endif
 
-#ifdef SWAP_RESERVE_FORCE_ON
+#ifndef SWAP_RESERVE_FORCE_ON
+#define        SWAP_RESERVE_FORCE_ON           (1 << 0)
+#define        SWAP_RESERVE_RLIMIT_ON          (1 << 1)
+#endif
        return ((vm_overcommit & (SWAP_RESERVE_FORCE_ON |
            SWAP_RESERVE_RLIMIT_ON)) == 0);
-#endif
 }
 #endif
 

Reply via email to