aboutsummaryrefslogtreecommitdiff
path: root/nptl/nptl-stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/nptl-stack.c')
-rw-r--r--nptl/nptl-stack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl/nptl-stack.c b/nptl/nptl-stack.c
index 1a0c460ba8..3f33a4c20b 100644
--- a/nptl/nptl-stack.c
+++ b/nptl/nptl-stack.c
@@ -21,8 +21,7 @@
#include <ldsodefs.h>
#include <pthreadP.h>
-/* Maximum size in kB of cache. 40MiBi by default. */
-static const size_t stack_cache_maxsize = 40 * 1024 * 1024;
+size_t __nptl_stack_cache_maxsize = 40 * 1024 * 1024;
void
__nptl_stack_list_del (list_t *elem)
@@ -103,8 +102,9 @@ queue_stack (struct pthread *stack)
__nptl_stack_list_add (&stack->list, &GL (dl_stack_cache));
GL (dl_stack_cache_actsize) += stack->stackblock_size;
- if (__glibc_unlikely (GL (dl_stack_cache_actsize) > stack_cache_maxsize))
- __nptl_free_stacks (stack_cache_maxsize);
+ if (__glibc_unlikely (GL (dl_stack_cache_actsize)
+ > __nptl_stack_cache_maxsize))
+ __nptl_free_stacks (__nptl_stack_cache_maxsize);
}
void