diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2024-02-27 12:43:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 12:43:05 -0600 |
commit | e427e934f677567f8184ff900cb4cbdb8cf21a21 (patch) | |
tree | 63e6957b6766ec7c1b42e7e078b3ac71319410ef /llvm/lib/Object/ArchiveWriter.cpp | |
parent | 563f414e049dc06dcb955f565fcff3c663982ee4 (diff) | |
download | llvm-e427e934f677567f8184ff900cb4cbdb8cf21a21.zip llvm-e427e934f677567f8184ff900cb4cbdb8cf21a21.tar.gz llvm-e427e934f677567f8184ff900cb4cbdb8cf21a21.tar.bz2 |
[lldb][dap] Avoid concurrent `HandleCommand` calls (#83162)
The `EventThreadFunction` can end up calling `HandleCommand`
concurrently with the main request processing thread. The underlying API
does not appear to be thread safe, so add a narrowly scoped mutex lock
to prevent calling it in this place from more than one thread.
Fixes #81686. Prior to this, TestDAP_launch.py is 4% flaky. After, it
passes in 1000 runs.
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions