[all-commits] [llvm/llvm-project] 998764: [lldb] Fix data race when interacting with python ...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Mon Jul 3 11:49:30 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9987646057d9748514662f96c869a5f87e463bc6
  Author: Med Ismail Bennani <ismail at bennani.ma>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
    M lldb/source/Target/Process.cpp

  Log Message:
  [lldb] Fix data race when interacting with python scripts

This patch should fix some data races when a python script (i.e. a
Scripted Process) has a nested call to another python script (i.e. a
OperatingSystem Plugin), which can cause concurrent writes to the python
lock count.

This patch also fixes a data race happening when resetting the operating
system unique pointer.

To address these issues, both accesses is guarded by a mutex.


Differential Revision: https://reviews.llvm.org/D154271

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>

More information about the All-commits mailing list