[all-commits] [llvm/llvm-project] d4c3c2: [lldb] Fix Process::SyncIOHandler

Pavel Labath via All-commits all-commits at lists.llvm.org
Fri Sep 8 01:17:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4c3c2872ff6acd75ee3e0083fa62b2a1cc5310c
      https://github.com/llvm/llvm-project/commit/d4c3c2872ff6acd75ee3e0083fa62b2a1cc5310c
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M lldb/source/Target/Process.cpp

  Log Message:
  -----------
  [lldb] Fix Process::SyncIOHandler

D157648 broke the function because it put the blocking wait into a
critical section. This meant that, if m_iohandler_sync was not updated
before entering the function, no amount of waiting would help.

Fix that by restriciting the scope of the critical section to the
iohandler check.




More information about the All-commits mailing list