mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03: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:
parent
df8f7d10af
commit
b950934916
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue