summaryrefslogtreecommitdiff
path: root/test/tsan/exceptions.cc
AgeCommit message (Collapse)Author
2016-11-14[tsan] Add support for C++ exceptions into TSan (call __tsan_func_exit ↵Kuba Brecka
during unwinding), compiler-rt part This adds support for TSan C++ exception handling, where we need to add extra calls to __tsan_func_exit when a function is exitted via exception mechanisms. Otherwise the shadow stack gets corrupted (leaked). This patch moves and enhances the existing implementation of EscapeEnumerator that finds all possible function exit points, and adds extra EH cleanup blocks where needed. Differential Revision: https://reviews.llvm.org/D26177 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@286894 91177308-0d34-0410-b5e6-96231b3b80d8