aboutsummaryrefslogtreecommitdiff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 3e057e9c7b..2dfecf0181 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -272,6 +272,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
/* This is a user-provided stack. */
pd->user_stack = true;
+ /* There is at least one more thread. */
+ pd->header.data.multiple_threads = 1;
+
/* Allocate the DTV for this thread. */
if (_dl_allocate_tls (pd) == NULL)
/* Something went wrong. */
@@ -337,6 +340,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
/* Initialize the lock. */
pd->lock = LLL_LOCK_INITIALIZER;
+ /* There is at least one more thread. */
+ pd->header.data.multiple_threads = 1;
+
/* Allocate the DTV for this thread. */
if (_dl_allocate_tls (pd) == NULL)
{