enabling mpss on solaris/illumos.

reusing slighty linux configuration as possible, aligning the
 address range to HUGEPAGE.
This commit is contained in:
David Carlier
2020-07-04 16:09:27 +01:00
committed by David Goldblatt
parent c2e7a06392
commit 00f06c9beb
5 changed files with 34 additions and 4 deletions

View File

@@ -1879,6 +1879,14 @@ if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
fi
AC_CHECK_FUNC([memcntl],
[have_memcntl="1"],
[have_memcntl="0"],
)
if test "x$have_memcntl" = "x1" ; then
AC_DEFINE([JEMALLOC_HAVE_MEMCNTL], [ ])
fi
dnl Disable lazy locking by default.
AC_ARG_ENABLE([lazy_lock],
[AS_HELP_STRING([--enable-lazy-lock],