diff options
author | Chris Apple <cja-private@pm.me> | 2024-08-23 14:09:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 14:09:44 -0700 |
commit | 64afbf0cbe2e7b77cc0e139cb9ccd086a7f9b930 (patch) | |
tree | 3baedddfb7fc3ded46a0bd8b04c637c3bbc0a278 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d7073c527457dc0a71126381afb3c6f0efa1821c (diff) | |
download | llvm-64afbf0cbe2e7b77cc0e139cb9ccd086a7f9b930.zip llvm-64afbf0cbe2e7b77cc0e139cb9ccd086a7f9b930.tar.gz llvm-64afbf0cbe2e7b77cc0e139cb9ccd086a7f9b930.tar.bz2 |
[rtsan][compiler-rt] Prevent UB hang in rtsan lock unit tests (#104733)
It is undefined behavior to lock or unlock an uninitialized lock, and
unlock a lock which isn't locked.
Introduce a fixture to set up and tear down the locks where
appropriate, and separates them into two tests (realtime death and non
realtime survival) so each test is guaranteed a fresh lock.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions