mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
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>
This commit is contained in:
@@ -376,6 +376,7 @@ memalign_check (size_t alignment, size_t bytes)
|
||||
return mem2mem_check (tag_new_usable (mem), bytes);
|
||||
}
|
||||
|
||||
#if HAVE_TUNABLES
|
||||
static void
|
||||
TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp)
|
||||
{
|
||||
@@ -383,6 +384,7 @@ TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp)
|
||||
if (value != 0)
|
||||
__malloc_debug_enable (MALLOC_CHECK_HOOK);
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool
|
||||
initialize_malloc_check (void)
|
||||
|
Reference in New Issue
Block a user