aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Interpreter/InterpreterTest.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2024-07-03 10:29:17 +0200
committerGitHub <noreply@github.com>2024-07-03 10:29:17 +0200
commit2a14c0643597c5932af85f22172c99800f9b4a6c (patch)
tree785c5d370fca4a59dfc9f6dd4125efb0e7c9798c /clang/unittests/Interpreter/InterpreterTest.cpp
parent76c84e702bd9af7db2bb9373ba6de0508f1e57a9 (diff)
downloadllvm-2a14c0643597c5932af85f22172c99800f9b4a6c.zip
llvm-2a14c0643597c5932af85f22172c99800f9b4a6c.tar.gz
llvm-2a14c0643597c5932af85f22172c99800f9b4a6c.tar.bz2
[lldb] Make Broadcaster mutexes non-recursive (#97400)
Non-recursive mutexes encourage better locking discipline and avoid bugs like #96750, where one can unexpectedly re-enter the critical section on the same thread, and interrupt a presumed-indivisible operation. In this case, the only needed fix was to remove locking from some BroadcastManager functions, which were only called from the Listener class (and the listener already locked those mutexes to preserve lock ordering). While doing that, I noticed we don't have unit tests for these functions, so I added one.
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
0 files changed, 0 insertions, 0 deletions