diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-03 16:18:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-03 16:18:59 (GMT) |
commit | 6f26be09e0f88edc7b2cdb4d6695c79dd6105a28 (patch) | |
tree | f2d201cfd0bfa7dbfae209718f5b536a5f81f306 /configure.in | |
parent | f44ce8748d4dcae7a359b147e5944acb4ed94638 (diff) | |
download | cpython-6f26be09e0f88edc7b2cdb4d6695c79dd6105a28.zip cpython-6f26be09e0f88edc7b2cdb4d6695c79dd6105a28.tar.gz cpython-6f26be09e0f88edc7b2cdb4d6695c79dd6105a28.tar.bz2 |
Issue #11849: Make it more likely for the system allocator to release
free()d memory arenas on glibc-based systems. Patch by Charles-François
Natali.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index f1a3139..146289f 100644 --- a/configure.in +++ b/configure.in @@ -2608,6 +2608,15 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ [AC_MSG_RESULT(no) ]) +AC_MSG_CHECKING(whether mallopt can set malloc mmap threshold) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include <malloc.h> +]], [[mallopt(M_MMAP_THRESHOLD, 256 * 1024)]])], + [AC_DEFINE(HAVE_MALLOPT_MMAP_THRESHOLD, 1, Define if mallopt can set malloc mmap threshold.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no) +]) + dnl check for true AC_CHECK_PROGS(TRUE, true, /bin/true) |