[PATCH] D25859: [tsan] Expose __tsan_ignore_thread_begin and __tsan_ignore_thread_end in TSan interface
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 14:52:57 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL286658: [tsan] Expose __tsan_ignore_thread_begin and __tsan_ignore_thread_end in TSan… (authored by zaks).
Changed prior to commit:
https://reviews.llvm.org/D25859?vs=76666&id=77676#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25859
Files:
compiler-rt/trunk/lib/tsan/rtl/tsan_interface.h
compiler-rt/trunk/lib/tsan/rtl/tsan_interface_inl.h
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_interface_inl.h
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interface_inl.h
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interface_inl.h
@@ -108,6 +108,14 @@
FuncExit(cur_thread());
}
+void __tsan_ignore_thread_begin() {
+ ThreadIgnoreBegin(cur_thread(), CALLERPC);
+}
+
+void __tsan_ignore_thread_end() {
+ ThreadIgnoreEnd(cur_thread(), CALLERPC);
+}
+
void __tsan_read_range(void *addr, uptr size) {
MemoryAccessRange(cur_thread(), CALLERPC, (uptr)addr, size, false);
}
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_interface.h
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interface.h
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interface.h
@@ -73,6 +73,9 @@
SANITIZER_INTERFACE_ATTRIBUTE void __tsan_func_entry(void *call_pc);
SANITIZER_INTERFACE_ATTRIBUTE void __tsan_func_exit();
+SANITIZER_INTERFACE_ATTRIBUTE void __tsan_ignore_thread_begin();
+SANITIZER_INTERFACE_ATTRIBUTE void __tsan_ignore_thread_end();
+
SANITIZER_INTERFACE_ATTRIBUTE
void __tsan_read_range(void *addr, unsigned long size); // NOLINT
SANITIZER_INTERFACE_ATTRIBUTE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25859.77676.patch
Type: text/x-patch
Size: 1222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161111/be038af3/attachment.bin>
More information about the llvm-commits
mailing list