summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/COM.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-04-30 20:35:18 +0000
committerKuba Mracek <mracek@apple.com>2017-04-30 20:35:18 +0000
commit5a195f4fc5b44902e01bed24c487e283411b658e (patch)
tree0ae7406ddcfd5f7f15bc14cebd8baaae3bd74a26 /llvm/lib/Support/COM.cpp
parent08989c7ecda18fc570299d6080868b6d3da921b0 (diff)
downloadbcm5719-llvm-5a195f4fc5b44902e01bed24c487e283411b658e.tar.gz
bcm5719-llvm-5a195f4fc5b44902e01bed24c487e283411b658e.zip
[tsan] Track external tags in thread traces
To make the TSan external API work with Swift and other use cases, we need to track "tags" for individual memory accesses. Since there is no space to store this information in shadow cells, let's use the thread traces for that. This patch stores the tag as an extra frame in the stack traces (by calling FuncEntry and FuncExit with the address of a registered tag), this extra frame is then stripped before printing the backtrace to stderr. Differential Revision: https://reviews.llvm.org/D32382 llvm-svn: 301777
Diffstat (limited to 'llvm/lib/Support/COM.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud