aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.33.2/990-no-stack-cache.patch
blob: 8f0b511ea6ff977f550e277d1213bcab4c533e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -100,7 +100,7 @@
 /* Cache handling for not-yet free stacks.  */
 
 /* Maximum size in kB of cache.  */
-static size_t stack_cache_maxsize = 40 * 1024 * 1024; /* 40MiBi by default.  */
+static size_t stack_cache_maxsize = 0; /* embedded systems don't have enough ram for dirty stack caches */
 static size_t stack_cache_actsize;
 
 /* Mutex protecting this variable.  */