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.
This commit is contained in:
Qi Wang 2022-06-08 14:24:55 -07:00 committed by Qi Wang
parent df8f7d10af
commit b950934916

View File

@ -671,6 +671,9 @@ case "${host}" in
SOREV="${rev}.${so}" SOREV="${rev}.${so}"
sbrk_deprecated="1" sbrk_deprecated="1"
SYM_PREFIX="_" SYM_PREFIX="_"
if test "${LG_SIZEOF_PTR}" = "3"; then
default_retain="1"
fi
;; ;;
*-*-freebsd*) *-*-freebsd*)
JE_APPEND_VS(CPPFLAGS, -D_BSD_SOURCE) JE_APPEND_VS(CPPFLAGS, -D_BSD_SOURCE)