Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2022 02:04:20 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3a1bb7f8d989 - stable/13 - jemalloc: Define SWAP_RESERVE_* if not provided by the system headers
Message-ID:  <202209300204.28U24KCs099344@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

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

commit 3a1bb7f8d989cc5413147996d1935ac44790bbb3
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-09-16 21:08:03 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209300204.28U24KCs099344>