Skip to content

Commit

Permalink
jemalloc: Retire SWAP_RESERVE_* compat shims
Browse files Browse the repository at this point in the history
We no longer need these compat shims. They were needed for FreeBSD 12
and earlier.

Sponsored by:		Netflix
  • Loading branch information
bsdimp committed Dec 13, 2024
1 parent db589b5 commit 59e013a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions contrib/jemalloc/src/pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,6 @@ os_overcommits_sysctl(void) {
}
#endif

#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);
}
Expand Down

0 comments on commit 59e013a

Please sign in to comment.