diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-28 15:48:58 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-06-28 16:41:58 +0200 |
commit | dd45734e322a03287d34d8af9b7da7b35cfddb8e (patch) | |
tree | 368647bd8c34ea5d1ea1f3cfa74ef52fb3271e67 /nptl/nptl-stack.h | |
parent | fef400a2f976d1fd6a4639e6980f6c50ee13fbf5 (diff) | |
download | glibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.tar glibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.tar.gz glibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.tar.bz2 glibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.zip |
nptl: Add glibc.pthread.stack_cache_size tunable
The valgrind/helgrind test suite needs a way to make stack dealloction
more prompt, and this feature seems to be generally useful.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'nptl/nptl-stack.h')
-rw-r--r-- | nptl/nptl-stack.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/nptl-stack.h b/nptl/nptl-stack.h index a6bd8df77f..8bcfde7ec5 100644 --- a/nptl/nptl-stack.h +++ b/nptl/nptl-stack.h @@ -25,6 +25,9 @@ #include <list.h> #include <stdbool.h> +/* Maximum size of the cache, in bytes. 40 MiB by default. */ +extern size_t __nptl_stack_cache_maxsize attribute_hidden; + /* Check whether the stack is still used or not. */ static inline bool __nptl_stack_in_use (struct pthread *pd) |