mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
jemalloc: Define SWAP_RESERVE_* if not provided by the system headers
(cherry picked from commit 0e2af3b59a
)
This commit is contained in:
parent
5955bc6b69
commit
3a1bb7f8d9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue