diff options
author | DJ Delorie <dj@delorie.com> | 2017-01-30 20:10:18 -0500 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2017-01-31 19:59:37 -0500 |
commit | 8fc36e8a22e61051641f5c7f979f1f9fb07a5a8d (patch) | |
tree | 7786492d187c5b64ff049b99da43b7798898f98b | |
parent | 53b383690979db3428371ccf85042f86db3b5615 (diff) | |
download | glibc-8fc36e8a22e61051641f5c7f979f1f9fb07a5a8d.zip glibc-8fc36e8a22e61051641f5c7f979f1f9fb07a5a8d.tar.gz glibc-8fc36e8a22e61051641f5c7f979f1f9fb07a5a8d.tar.bz2 |
Fix tunables conditionals
- Fix ifdef -> if
- Conditionalize tunables hooks
-rw-r--r-- | malloc/arena.c | 2 | ||||
-rw-r--r-- | malloc/malloc.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/malloc/arena.c b/malloc/arena.c index 74616df..d115d35 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 <string.h> diff --git a/malloc/malloc.c b/malloc/malloc.c index 5b61f75..d19fa03 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) |