Thread stack size issue related to glibc TLS bug

Jiangli Zhou jianglizhou at google.com
Fri May 24 20:29:11 UTC 2019


Hi Florian,

On Fri, May 24, 2019 at 2:46 AM Florian Weimer <fweimer at redhat.com> wrote:
>
> * Jiangli Zhou:
>
> > [3] change: http://cr.openjdk.java.net/~jiangli/tls_size/webrev/
> > (contributed by Jeremy Manson)
>
> _dl_get_tls_static_info is an internal symbol (it carries a
> GLIBC_PRIVATE symbol version).  Its implementation can change at any
> time.  Please do not do this.

Point taken. Thanks.

It appears that asan is already carrying the same type of fix:

https://github.com/gcc-mirror/gcc/blob/master/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc

As the issue has not been able to be addressed in the glibc layer, all
the others have to workaround it (and possibly by using the glibc
private APIs, _dl_get_tls_static_info or __pthread_get_minstack). That
would cause more dependencies on the private APIs.

One alternative (besides fixing glibc) may be making
_dl_get_tls_static_info public. Would that be possible?

Best,

Jiangli
>
> Thanks,
> Florian


More information about the hotspot-runtime-dev mailing list