[all-commits] [llvm/llvm-project] eb5c0e: [lldb] Initialize Python exactly once

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jan 19 09:57:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb5c0ea681803361a1944c966f4becaa9e22dc1a
      https://github.com/llvm/llvm-project/commit/eb5c0ea681803361a1944c966f4becaa9e22dc1a
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
    M lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp

  Log Message:
  -----------
  [lldb] Initialize Python exactly once

We got a few crash reports that showed LLDB initializing Python on two
separate threads. Make sure Python is initialized exactly once.

rdar://87287005

Differential revision: https://reviews.llvm.org/D117601




More information about the All-commits mailing list