diff options
author | Kuba Mracek <mracek@apple.com> | 2017-05-03 16:51:01 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-05-03 16:51:01 +0000 |
commit | a7cad4fcb7434e42d1387477c42a7546b9f27259 (patch) | |
tree | ede770d135177ee69617e5e41b8fc225d609dd3b /llvm/lib/Support/ARMAttributeParser.cpp | |
parent | 03ccf91d85ba1084d9071d5c912855ee1410e4ae (diff) | |
download | bcm5719-llvm-a7cad4fcb7434e42d1387477c42a7546b9f27259.tar.gz bcm5719-llvm-a7cad4fcb7434e42d1387477c42a7546b9f27259.zip |
[tsan] Detect races on modifying accesses in Swift code
This patch allows the Swift compiler to emit calls to `__tsan_external_write` before starting any modifying access, which will cause TSan to detect races on arrays, dictionaries and other classes defined in non-instrumented modules. Races on collections from the Swift standard library and user-defined structs and a frequent cause of subtle bugs and it's important that TSan detects those on top of existing LLVM IR instrumentation, which already detects races in direct memory accesses.
Differential Revision: https://reviews.llvm.org/D31630
llvm-svn: 302050
Diffstat (limited to 'llvm/lib/Support/ARMAttributeParser.cpp')
0 files changed, 0 insertions, 0 deletions