mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 14:23:12 +00:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user