990-no-stack-cache.patch 450 B

1234567891011
  1. --- a/libpthread/nptl/allocatestack.c
  2. +++ b/libpthread/nptl/allocatestack.c
  3. @@ -100,7 +100,7 @@
  4. /* Cache handling for not-yet free stacks. */
  5. /* Maximum size in kB of cache. */
  6. -static size_t stack_cache_maxsize = 40 * 1024 * 1024; /* 40MiBi by default. */
  7. +static size_t stack_cache_maxsize = 0; /* embedded systems don't have enough ram for dirty stack caches */
  8. static size_t stack_cache_actsize;
  9. /* Mutex protecting this variable. */