diff options
author | Hans Wennborg <hans@chromium.org> | 2023-11-07 16:06:58 +0100 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2023-11-07 16:08:01 +0100 |
commit | 27156dd575d34980c21f97fae4bfbd47a8ca16de (patch) | |
tree | cbf4a8c8a0ffd51da676a664c8831fd8260586fd /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 8ee9da02325cebf359de987f7ac8e1d3d629affe (diff) | |
download | llvm-27156dd575d34980c21f97fae4bfbd47a8ca16de.zip llvm-27156dd575d34980c21f97fae4bfbd47a8ca16de.tar.gz llvm-27156dd575d34980c21f97fae4bfbd47a8ca16de.tar.bz2 |
Revert "[TSAN] Add __tsan_check_no_mutexes_held helper (#69372)"
The new lit test fails, see comment on the PR. This also reverts
the follow-up commit, see below.
> This adds a new helper that can be called from application code to
> ensure that no mutexes are held on specific code paths. This is useful
> for multiple scenarios, including ensuring no locks are held:
>
> - at thread exit
> - in peformance-critical code
> - when a coroutine is suspended (can cause deadlocks)
>
> See this discourse thread for more discussion:
>
> https://discourse.llvm.org/t/add-threadsanitizer-check-to-prevent-coroutine-suspending-while-holding-a-lock-potential-deadlock/74051
This reverts commit bd841111f340a73eb23c1be70ff1be4c8a6afb0c.
This reverts commit 16a395b74d35c564f6f36ba4a167950a323badd9.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions