[PATCH] D32705: [compiler-rt] move tsan's Android __get_tls() to sanitizer_common
Dmitry Vyukov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 04:56:30 PDT 2017
dvyukov added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_linux.h:121
+ALWAYS_INLINE uptr *get_android_tls_ptr() {
+ return reinterpret_cast<uptr *>(__get_tls());
+}
----------------
Please make it return &__get_tls()[TLS_SLOT_TSAN].
There is not need to spread TLS_SLOT_TSAN across sanitizers.
https://reviews.llvm.org/D32705
More information about the llvm-commits
mailing list