[PATCH] D20913: [asan] add primitives that allow coroutine implementations
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 02:20:29 PDT 2016
dvyukov added a comment.
In http://reviews.llvm.org/D20913#450731, @blastrock wrote:
> Because then I will not be able to write something like
>
> __sanitizer_enter();
> ThrowAndCatch();
> swapcontext();
>
>
> because __sanitizer_enter() will be called directly inside swapcontext().
This can be tested by sending signals during the switch and doing ThrowAndCatch inside the handler.
That would be a very useful test on its own. Signals are known to be tricky and cause problems.
You can find some existing tests that setup periodic timer signals (at lest there are few in tsan).
http://reviews.llvm.org/D20913
More information about the llvm-commits
mailing list