mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Ignore jemalloc versions before 4.0.0
We now depend on explicitly creating memory arenas and disabling tcache on those, and these features are not available with jemalloc < 4. Instead of working around these issues, make the jemalloc >= 4.0.0 hard requirement by looking for sdallocx() symbol that's only available from that version. The jemalloc < 4 was only used by RHEL 7 which is not supported since BIND 9.19+.
This commit is contained in:
@@ -52,11 +52,6 @@
|
|||||||
#elif defined(HAVE_JEMALLOC)
|
#elif defined(HAVE_JEMALLOC)
|
||||||
#include <jemalloc/jemalloc.h>
|
#include <jemalloc/jemalloc.h>
|
||||||
#define JEMALLOC_API_SUPPORTED 1
|
#define JEMALLOC_API_SUPPORTED 1
|
||||||
|
|
||||||
#if JEMALLOC_VERSION_MAJOR < 4
|
|
||||||
#define sdallocx(ptr, size, flags) dallocx(ptr, flags)
|
|
||||||
#endif /* JEMALLOC_VERSION_MAJOR < 4 */
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include "jemalloc_shim.h"
|
#include "jemalloc_shim.h"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,7 +36,7 @@ AC_DEFUN([AX_CHECK_JEMALLOC], [
|
|||||||
save_LIBS="$LIBS"
|
save_LIBS="$LIBS"
|
||||||
save_LDFLAGS="$LDFLAGS"
|
save_LDFLAGS="$LDFLAGS"
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
AC_SEARCH_LIBS([mallocx], [jemalloc],
|
AC_SEARCH_LIBS([sdallocx], [jemalloc],
|
||||||
[
|
[
|
||||||
found=true
|
found=true
|
||||||
AS_IF([test "$ac_cv_search_mallocx" != "none required"],
|
AS_IF([test "$ac_cv_search_mallocx" != "none required"],
|
||||||
|
Reference in New Issue
Block a user