summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2022-06-08 14:24:55 -0700
committerQi Wang <interwq@gmail.com>2022-06-09 11:37:44 -0700
commitb950934916b2973fd4131ebfb684e53df305001a (patch)
tree83ebd93fbd07147805db8951b3dd28265722350b
parentdf8f7d10af15d549ab73ba807b2e14a9d7fe1cc2 (diff)
downloadjemalloc-b950934916b2973fd4131ebfb684e53df305001a.tar.gz
Enable retain by default on macOS.
High number of mappings result in unusually high fork() cost on macOS. Retain fixes the issue, at a small cost of extra VM space reserved.
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 66eb7c91..917d9a80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -671,6 +671,9 @@ case "${host}" in
SOREV="${rev}.${so}"
sbrk_deprecated="1"
SYM_PREFIX="_"
+ if test "${LG_SIZEOF_PTR}" = "3"; then
+ default_retain="1"
+ fi
;;
*-*-freebsd*)
JE_APPEND_VS(CPPFLAGS, -D_BSD_SOURCE)