[all-commits] [llvm/llvm-project] e427e9: [lldb][dap] Avoid concurrent `HandleCommand` calls...
Jordan Rupprecht via All-commits
all-commits at lists.llvm.org
Tue Feb 27 10:43:17 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e427e934f677567f8184ff900cb4cbdb8cf21a21
https://github.com/llvm/llvm-project/commit/e427e934f677567f8184ff900cb4cbdb8cf21a21
Author: Jordan Rupprecht <rupprecht at google.com>
Date: 2024-02-27 (Tue, 27 Feb 2024)
Changed paths:
M lldb/test/API/tools/lldb-dap/commands/TestDAP_commands.py
M lldb/tools/lldb-dap/LLDBUtils.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list