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 | 47b7c5c912a012a9b4c2cdde662bc4d5338d7c86 (patch) | |
tree | c276b7a87875d9fec4f5a59b9e4447881d97bca6 /llvm/lib/Support/regerror.c | |
parent | bf2c03ee6952c69f1f418707ecad471761ea6ebb (diff) | |
download | bcm5719-llvm-47b7c5c912a012a9b4c2cdde662bc4d5338d7c86.tar.gz bcm5719-llvm-47b7c5c912a012a9b4c2cdde662bc4d5338d7c86.zip |
[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
llvm-svn: 273260
Diffstat (limited to 'llvm/lib/Support/regerror.c')
0 files changed, 0 insertions, 0 deletions