From: Florian Weimer Date: Mon, 27 May 2019 10:57:45 +0000 (+0200) Subject: nptl: Add comment to __pthread_get_minstack about external users X-Git-Tag: glibc-2.30~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85188d8211698d1a255f0aec6529546db5c56de3;p=thirdparty%2Fglibc.git nptl: Add comment to __pthread_get_minstack about external users --- diff --git a/ChangeLog b/ChangeLog index b46b581707b..53a3ae4ddbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-05-27 Florian Weimer + + * nptl/nptl-init.c: Add comment. + 2019-05-24 Florian Weimer * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 2926558b912..73935f8be41 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) {