mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl/tst-tls3-malloc: Force freeing of thread stacks
It turns out that due to the reduced stack size in tst-tls3 and the (fixed) default stack cache size, allocated TLS variables are never freed, so the test coverage for tst-tls3-malloc is less than complete. This change increases the thread stack size for tst-tls3-malloc only, to make sure thread stacks and TLS variables are freed.
This commit is contained in:
@ -19,6 +19,11 @@
|
||||
/* Reuse the test. */
|
||||
#include "tst-tls3.c"
|
||||
|
||||
/* Increase the thread stack size to 10 MiB, so that some thread
|
||||
stacks are actually freed. (The stack cache size is currently
|
||||
hard-wired to 40 MiB in allocatestack.c.) */
|
||||
static long stack_size_in_mb = 10;
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
/* Interpose a minimal malloc implementation. This implementation
|
||||
|
Reference in New Issue
Block a user