From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70654 invoked by alias); 27 May 2019 12:16:48 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 70612 invoked by uid 9299); 27 May 2019 12:16:48 -0000 Date: Mon, 27 May 2019 12:16:00 -0000 Message-ID: <20190527121648.70610.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] nptl: Add comment to __pthread_get_minstack about external users X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: 5c23c82195fc9e95ae34180250f64438f1e6fb0b X-Git-Newrev: 85188d8211698d1a255f0aec6529546db5c56de3 X-SW-Source: 2019-q2/txt/msg00266.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=85188d8211698d1a255f0aec6529546db5c56de3 commit 85188d8211698d1a255f0aec6529546db5c56de3 Author: Florian Weimer Date: Mon May 27 12:57:45 2019 +0200 nptl: Add comment to __pthread_get_minstack about external users Diff: --- ChangeLog | 4 ++++ nptl/nptl-init.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index b46b581..53a3ae4 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 2926558..73935f8 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) {