diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2016-06-21 12:29:18 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2016-06-21 12:29:18 +0000 |
commit | b0477747dfa8a9706f2c902e877e616aca51e06f (patch) | |
tree | b1d50dd4809580b6dbbc8550adafa45a0cce0ead /cmake/base-config-ix.cmake | |
parent | c025f88212fc19aa62345aaf68cf6fe48733315d (diff) |
[asan] add primitives that allow coroutine implementations
This patch adds the __sanitizer_start_switch_fiber and
__sanitizer_finish_switch_fiber methods inspired from what can be found here
https://github.com/facebook/folly/commit/2ea64dd24946cbc9f3f4ac3f6c6b98a486c56e73 .
These methods are needed when the compiled software needs to implement
coroutines, fibers or the like. Without a way to annotate them, when the program
jumps to a stack that is not the thread stack, __asan_handle_no_return shows a
warning about that, and the fake stack mechanism may free fake frames that are
still in use.
Author: blastrock (Philippe Daouadi)
Reviewed in http://reviews.llvm.org/D20913
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@273260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/base-config-ix.cmake')
0 files changed, 0 insertions, 0 deletions