aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-05-27 12:57:45 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-05-27 12:57:45 +0200
commit85188d8211698d1a255f0aec6529546db5c56de3 (patch)
tree22642bf4a1b9068291ebb49ec9204a1f9ac2d15c /nptl
parentnss_dns: Check for proper A/AAAA address alignment (diff)
downloadglibc-85188d8211698d1a255f0aec6529546db5c56de3.tar.gz
glibc-85188d8211698d1a255f0aec6529546db5c56de3.tar.bz2
glibc-85188d8211698d1a255f0aec6529546db5c56de3.zip
nptl: Add comment to __pthread_get_minstack about external users
Diffstat (limited to 'nptl')
-rw-r--r--nptl/nptl-init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 2926558b91..73935f8be4 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -407,6 +407,14 @@ strong_alias (__pthread_initialize_minimal_internal,
__pthread_initialize_minimal)
+/* This function is internal (it has a GLIBC_PRIVATE) version, but it
+ is widely used (either via weak symbol, or dlsym) to obtain the
+ __static_tls_size value. This value is then used to adjust the
+ value of the stack size attribute, so that applications receive the
+ full requested stack size, not diminished by the TCB and static TLS
+ allocation on the stack. Once the TCB is separately allocated,
+ this function should be removed or renamed (if it is still
+ necessary at that point). */
size_t
__pthread_get_minstack (const pthread_attr_t *attr)
{