aboutsummaryrefslogtreecommitdiff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-23 13:57:56 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-23 13:57:56 +0530
commit5b8d271571434a74b2464c278eafe2ff81f31029 (patch)
treef26246c5541976c4c40740c801f7d42c02b68d44 /malloc/arena.c
parent9a7ab0769b295cbf5232140401742a8f34bda3de (diff)
downloadglibc-5b8d271571434a74b2464c278eafe2ff81f31029.tar
glibc-5b8d271571434a74b2464c278eafe2ff81f31029.tar.gz
glibc-5b8d271571434a74b2464c278eafe2ff81f31029.tar.bz2
glibc-5b8d271571434a74b2464c278eafe2ff81f31029.zip
Fix build and tests with --disable-tunables
Remove unused code and declare __libc_mallopt when !IS_IN (libc) to allow the debug hook to build with --disable-tunables. Also, run tst-ifunc-isa-2* tests only when tunables are enabled since the result depends on it. Tested on x86_64. Reported-by: Matheus Castanho <msc@linux.ibm.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index edcaa8816d..667484630e 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -332,7 +332,6 @@ ptmalloc_init (void)
# endif
TUNABLE_GET (mxfast, size_t, TUNABLE_CALLBACK (set_mxfast));
#else
- const char *s = NULL;
if (__glibc_likely (_environ != NULL))
{
char **runp = _environ;
@@ -351,10 +350,6 @@ ptmalloc_init (void)
switch (len)
{
- case 6:
- if (memcmp (envline, "CHECK_", 6) == 0)
- s = &envline[7];
- break;
case 8:
if (!__builtin_expect (__libc_enable_secure, 0))
{