RFR: 8225035: Thread stack size issue caused by large TLS size
Florian Weimer
fweimer at redhat.com
Wed Jun 19 14:27:29 UTC 2019
* Thomas Stüfe:
> Are you sure? The snippet Florian posted seemed to indicate that the
> page size factors into the result of __pthread_minstack. Something
> along the line of "tls_size + x", where x depends on page size? If
> this is true, for larger page sizes x would dwarf tls_size, which was
> my original fear - that the size __pthread_get_minstack returns would
> be unnecessarily large on those platforms.
I would expect that you'd subtract the page size and the
PTHREAD_MIN_STACK constant and use only the raw static TLS area size for
the adjustment if you use __pthread_get_minstack. The reason to use
this function is not that the value is particularly useful, but that
it's quite stable over time (even though it's strictly internal to
glibc) and the only way to get at this date .
Thanks,
Florian
More information about the hotspot-runtime-dev
mailing list