From 8fc36e8a22e61051641f5c7f979f1f9fb07a5a8d Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 30 Jan 2017 20:10:18 -0500 Subject: [PATCH] Fix tunables conditionals - Fix ifdef -> if - Conditionalize tunables hooks --- malloc/arena.c | 2 ++ malloc/malloc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/malloc/arena.c b/malloc/arena.c index 74616df110e..d115d351b36 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -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 diff --git a/malloc/malloc.c b/malloc/malloc.c index 5b61f75c4bc..d19fa03a1a2 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -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) -- 2.47.2