diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-12-31 23:33:27 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-12-31 23:49:24 +0530 |
commit | 9dd409a5f4a7a053cc962f8371dad0fe5cc22597 (patch) | |
tree | a205733e557ccf0b66021deff34cd6b690150f9e /config.make.in | |
parent | 67e58f39412ecd4467034761f3f074283c90f3c8 (diff) | |
download | glibc-9dd409a5f4a7a053cc962f8371dad0fe5cc22597.tar.gz glibc-9dd409a5f4a7a053cc962f8371dad0fe5cc22597.tar.xz glibc-9dd409a5f4a7a053cc962f8371dad0fe5cc22597.zip |
Initialize tunable list with the GLIBC_TUNABLES environment variable
Read tunables values from the users using the GLIBC_TUNABLES environment variable. The value of this variable is a colon-separated list of name=value pairs. So a typical string would look like this: GLIBC_TUNABLES=glibc.malloc.mmap_threshold=2048:glibc.malloc.trim_threshold=1024 * config.make.in (have-loop-to-function): Define. * elf/Makefile (CFLAGS-dl-tunables.c): Add -fno-tree-loop-distribute-patterns. * elf/dl-tunables.c: Include libc-internals.h. (GLIBC_TUNABLES): New macro. (tunables_strdup): New function. (parse_tunables): New function. (min_strlen): New function. (__tunables_init): Use the new functions and macro. (disable_tunable): Disable tunable from GLIBC_TUNABLES. * malloc/tst-malloc-usable-tunables.c: New test case. * malloc/tst-malloc-usable-static-tunables.c: New test case. * malloc/Makefile (tests, tests-static): Add tests.
Diffstat (limited to 'config.make.in')
-rw-r--r-- | config.make.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.make.in b/config.make.in index 2f8dae213d..5836b32a72 100644 --- a/config.make.in +++ b/config.make.in @@ -71,6 +71,7 @@ have-hash-style = @libc_cv_hashstyle@ use-default-link = @use_default_link@ output-format = @libc_cv_output_format@ have-cxx-thread_local = @libc_cv_cxx_thread_local@ +have-loop-to-function = @libc_cv_cc_loop_to_function@ multi-arch = @multi_arch@ |