[compiler-rt] [netbsd] Improve the portability of ThreadSelfTlsTcb
authorKamil Rytarowski <n54@gmx.com>
Fri, 2 Oct 2020 14:13:09 +0000 (16:13 +0200)
committerKamil Rytarowski <n54@gmx.com>
Fri, 2 Oct 2020 14:32:58 +0000 (16:32 +0200)
commit2a9ce60de98e53198047daaeeec3cf09ece4e693
tree69f540816a9ff380988a509cd451031b0d521245
parentd9e397208002281322cb72383edff24e21dbeb27
[compiler-rt] [netbsd] Improve the portability of ThreadSelfTlsTcb

Use __lwp_gettcb_fast() and __lwp_getprivate_fast(), as _lwp_getprivate()
can be a biased pointer and invalid for use in this function on all CPUs.
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp