aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
diff options
context:
space:
mode:
authorJameson Nash <vtjnash@gmail.com>2025-07-30 12:59:08 -0400
committerGitHub <noreply@github.com>2025-07-30 12:59:08 -0400
commit1a53553f11514c4eb116e6a935ada3e350d8d6c5 (patch)
tree632bcb7129bf81cfbf0902773e41c60f7310d018 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
parent71d6762309a7db67770bdbd39572ef04e6a1ea59 (diff)
downloadllvm-1a53553f11514c4eb116e6a935ada3e350d8d6c5.zip
llvm-1a53553f11514c4eb116e6a935ada3e350d8d6c5.tar.gz
llvm-1a53553f11514c4eb116e6a935ada3e350d8d6c5.tar.bz2
[ORC] Fix synchronization in CoreAPIsTest. (#144556)
The code previously appeared to have a (benign?) race condition on `WorkThreads.size`, since it was being accessed outside of the mutex lock that protected it on the threads. This is usually okay since 1a1d6e6f98738be249b20994bcfed48dccac59e3, but doesn't seem reliable in general, so fix this code to express the intent more accurately. This instead relies on the same general principles as ref-counting, where each existing reference (thread) can add new references (threads) because they already have a reference themselves (until joined).
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
0 files changed, 0 insertions, 0 deletions