summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-05-03 16:51:01 +0000
committerKuba Mracek <mracek@apple.com>2017-05-03 16:51:01 +0000
commita7cad4fcb7434e42d1387477c42a7546b9f27259 (patch)
treeede770d135177ee69617e5e41b8fc225d609dd3b /llvm/tools
parent03ccf91d85ba1084d9071d5c912855ee1410e4ae (diff)
downloadbcm5719-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/tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud