aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorKenny Yu <yu.kenny124@gmail.com>2023-11-02 22:53:52 -0700
committerGitHub <noreply@github.com>2023-11-03 06:53:52 +0100
commitbd841111f340a73eb23c1be70ff1be4c8a6afb0c (patch)
treeec17e76d6a45d3426e78e83dde2b5d413517eea8 /llvm/lib/Bitcode
parent3cef582ae430fb912f1d089fab7c64e77d40fcf9 (diff)
downloadllvm-bd841111f340a73eb23c1be70ff1be4c8a6afb0c.zip
llvm-bd841111f340a73eb23c1be70ff1be4c8a6afb0c.tar.gz
llvm-bd841111f340a73eb23c1be70ff1be4c8a6afb0c.tar.bz2
[TSAN] Add __tsan_check_no_mutexes_held helper (#69372)
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
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions