[PATCH] D58171: Fix thread sanitizer on aarch64
Yuri Per via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 13 03:44:54 PST 2019
yuri created this revision.
yuri added reviewers: rovka, dvyukov, vitalybuka.
yuri added a project: Sanitizers.
Herald added subscribers: Sanitizers, llvm-commits, kristof.beyls, javed.absar, kubamracek.
Herald added a project: LLVM.
Call cur_thread_init() from COMMON_INTERCEPTORs
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D58171
Files:
lib/tsan/rtl/tsan_interceptors.cc
Index: lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- lib/tsan/rtl/tsan_interceptors.cc
+++ lib/tsan/rtl/tsan_interceptors.cc
@@ -153,7 +153,7 @@
#endif
#define COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED \
- (!cur_thread()->is_inited)
+ (cur_thread_init(), !cur_thread()->is_inited)
namespace __tsan {
struct SignalDesc {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58171.186622.patch
Type: text/x-patch
Size: 390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190213/47f5ed62/attachment.bin>
More information about the llvm-commits
mailing list