llvm-project/compiler-rt/test
Julian Lettner a6d29024ed [TSan] Support Objective-C @synchronized with tagged pointers
Summary:
Objective-C employs tagged pointers, that is, small objects/values may be encoded directly in the pointer bits. The resulting pointer is not backed by an allocation/does not point to a valid memory. TSan infrastructure requires a valid address for `Acquire/Release` and `Mutex{Lock/Unlock}`.
This patch establishes such a mapping via a "dummy allocation" for each encountered tagged pointer value.


Reviewers: dcoughlin, kubamracek, dvyukov, delcypher

Reviewed By: dvyukov

Subscribers: llvm-commits, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D56238

llvm-svn: 350556
2019-01-07 19:19:23 +00:00
..
BlocksRuntime
asan Revert "[asan] Support running without /proc.", +1 2018-12-28 01:27:18 +00:00
builtins [compiler-rt][builtins][PowerPC] Enable builtins tests on PowerPC 64 bit LE 2018-12-19 15:52:41 +00:00
cfi [Cfi] Compiling cfi library on FreeBSD and NetBSD 2018-10-01 18:01:55 +00:00
dfsan Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
esan [Esan] Port cache frag to FreeBSD 2018-10-04 20:58:18 +00:00
fuzzer [fuzzer] Read files as binary 2018-11-06 23:25:25 +00:00
hwasan Disable system-allocator-fallback.cc test on Android O and earlier. 2019-01-04 23:10:47 +00:00
interception Revert "[interception] Check for export table's size before referring to its elements." 2017-01-22 03:30:14 +00:00
lsan [lsan] Check that leak sanitizer works in the forked process 2018-08-27 19:15:05 +00:00
msan Enable test/msan/pthread_getname_np.cc for NetBSD 2018-12-15 10:42:14 +00:00
profile Add support for LLVM profile for NetBSD 2018-12-22 06:56:19 +00:00
safestack SafeStack: Fix flaky test (PR39001) 2018-09-21 19:02:32 +00:00
sanitizer_common Re-disable the sanitizer_common/TestCases/Posix/getfsent.cc test. Recent macOS versions don't have the /etc/fstab file any more so we cannot test getfsent/setfsent APIs on Darwin. 2019-01-03 17:26:29 +00:00
scudo [scudo] Fix race condition in deallocation path when Quarantine is bypassed 2018-08-14 18:34:52 +00:00
shadowcallstack [scs] Disable negative test in shadowcallstack. 2018-06-29 15:16:45 +00:00
tsan [TSan] Support Objective-C @synchronized with tagged pointers 2019-01-07 19:19:23 +00:00
ubsan [compiler-rt][UBSan] silence_unsigned_overflow: do *NOT* ignore *fatal* unsigned overflows 2018-11-21 20:35:43 +00:00
ubsan_minimal [compiler-rt][ubsan] Implicit Conversion Sanitizer - integer sign change - compiler-rt part 2018-10-30 21:58:54 +00:00
xray Add header <atomic> which is needed to compile with some older library versions. 2018-11-21 08:54:40 +00:00
.clang-format [compiler-rt] Use "ColumnLimit: 0" instead of "clang-format off" in tests 2018-12-01 01:24:29 +00:00
CMakeLists.txt [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
lit.common.cfg Disable system-allocator-fallback.cc test on Android O and earlier. 2019-01-04 23:10:47 +00:00
lit.common.configured.in [compiler-rt] Add NewPM testing to CFI tests 2018-07-19 15:32:48 +00:00