mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 06:13:13 +00:00
Sanity check szind on tcache flush.
This adds some overhead to the tcache flush path (which is one of the popular paths). Guard it behind a config option.
This commit is contained in:
16
configure.ac
16
configure.ac
@@ -1403,6 +1403,22 @@ if test "x$enable_readlinkat" = "x1" ; then
|
||||
fi
|
||||
AC_SUBST([enable_readlinkat])
|
||||
|
||||
dnl Avoid the extra size checking by default
|
||||
AC_ARG_ENABLE([extra-size-check],
|
||||
[AS_HELP_STRING([--enable-extra-size-check],
|
||||
[Perform additonal size related sanity checks])],
|
||||
[if test "x$enable_extra_size_check" = "xno" ; then
|
||||
enable_extra_size_check="0"
|
||||
else
|
||||
enable_extra_size_check="1"
|
||||
fi
|
||||
],
|
||||
[enable_extra_size_check=="0"]
|
||||
)
|
||||
if test "x$enable_extra_size_check" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_EXTRA_SIZE_CHECK], [ ])
|
||||
fi
|
||||
AC_SUBST([enable_extra_size_check])
|
||||
|
||||
JE_COMPILABLE([a program using __builtin_unreachable], [
|
||||
void foo (void) {
|
||||
|
||||
Reference in New Issue
Block a user