[all-commits] [llvm/llvm-project] 0ee181: [lldb] Eliminate InitializePythonRAII::InitializeT...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Aug 4 09:08:41 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ee1811624383b4601c969d72e851377f868120f
https://github.com/llvm/llvm-project/commit/0ee1811624383b4601c969d72e851377f868120f
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2025-08-04 (Mon, 04 Aug 2025)
Changed paths:
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
Log Message:
-----------
[lldb] Eliminate InitializePythonRAII::InitializeThreadsPrivate (NFC) (#151780)
The behavior of thread initialization changed in Python 3.7. The minimum
supported Python version is now 3.8. That means that
`PyEval_ThreadsInitialized` always returns true and `PyEval_InitThreads`
is never called.
The helper function existed to coordinate initializing the threads and
acquiring the GIL, which is no longer necessary. With that, there's no
point in having the helper at all. This PR eliminates the function and
inlines to GIL acquisition into the caller.
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