aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorAyush Sahay <asahay@qti.qualcomm.com>2021-06-11 21:22:15 +0530
committerAyush Sahay <asahay@qti.qualcomm.com>2021-06-11 21:37:19 +0530
commit5ef5177145b48e6379fe3a6434d3ff593fe7202a (patch)
tree3343fa98b1b271c26b6dd25ce9ce1c923e276d80 /llvm/lib/CodeGen/MachineFunction.cpp
parent82a3b606b01d2da23a40785222f3f7d15401dda0 (diff)
downloadllvm-5ef5177145b48e6379fe3a6434d3ff593fe7202a.zip
llvm-5ef5177145b48e6379fe3a6434d3ff593fe7202a.tar.gz
llvm-5ef5177145b48e6379fe3a6434d3ff593fe7202a.tar.bz2
[lldb-vscode] Synchronize calls to SendTerminatedEvent
If an inferior exits prior to the processing of a disconnect request, then the threads executing EventThreadFunction and request_discontinue respectively may call SendTerminatedEvent simultaneously, in turn, testing and/or setting g_vsc.sent_terminated_event without any synchronization. In case the thread executing EventThreadFunction sets it before the thread executing request_discontinue has had a chance to test it, the latter would move ahead to issue a response to the disconnect request. Said response may be dispatched ahead of the terminated event compelling the client to terminate the debug session without consuming any console output that might've been generated by the execution of terminateCommands. Reviewed By: clayborg, wallace Differential Revision: https://reviews.llvm.org/D103609
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions