TLS static info and _dl_get_tls_static_info()

Dmitry Vyukov dvyukov@google.com
Mon Dec 24 18:45:00 GMT 2012


Hi,

I am working on ThreadSanitizer, a data race detector for C/C++
(http://clang.llvm.org/docs/ThreadSanitizer.html).
In the runtime library I need to obtain info about thread local
storage. Currently I use _dl_get_tls_static_info() function for that.
It's a glibc private function, so this is bad.

Is there another better way to obtain tls size or address for particular thread?

TIA



More information about the Libc-alpha mailing list