]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix tunables conditionals
authorDJ Delorie <dj@delorie.com>
Tue, 31 Jan 2017 01:10:18 +0000 (20:10 -0500)
committerDJ Delorie <dj@delorie.com>
Wed, 1 Feb 2017 00:59:37 +0000 (19:59 -0500)
- Fix ifdef -> if
- Conditionalize tunables hooks

malloc/arena.c
malloc/malloc.c

index 74616df110ebc93423553cc59416ff9290700628..d115d351b369041f55bcc78f1e6713c7fd48816c 100644 (file)
@@ -236,9 +236,11 @@ DL_TUNABLE_CALLBACK_FNDECL (set_perturb_byte, int32_t)
 DL_TUNABLE_CALLBACK_FNDECL (set_trim_threshold, size_t)
 DL_TUNABLE_CALLBACK_FNDECL (set_arena_max, size_t)
 DL_TUNABLE_CALLBACK_FNDECL (set_arena_test, size_t)
+#if USE_TCACHE
 DL_TUNABLE_CALLBACK_FNDECL (set_tcache_max, size_t)
 DL_TUNABLE_CALLBACK_FNDECL (set_tcache_count, size_t)
 DL_TUNABLE_CALLBACK_FNDECL (set_tcache_unsorted_limit, size_t)
+#endif
 #else
 /* Initialization routine. */
 #include <string.h>
index 5b61f75c4bc619589b16efa2137f0d18a0eb0c27..d19fa03a1a2e0375c4fd77d8388f9eb62f40f736 100644 (file)
@@ -5083,7 +5083,7 @@ do_set_arena_max (size_t value)
   return 1;
 }
 
-#ifdef USE_TCACHE
+#if USE_TCACHE
 static inline int
 __always_inline
 do_set_tcache_max (size_t value)