]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43268: Replace _PyThreadState_GET() with _PyInterpreterState_GET() (GH-24576)
authorVictor Stinner <vstinner@python.org>
Fri, 19 Feb 2021 12:21:28 +0000 (13:21 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 12:21:28 +0000 (13:21 +0100)
commit5592f2b9daa24bf74cc616abcc40a29da2bdccb2
tree532d865e35e6a5338310bb093841f30a7897d964
parent2bb0bf4dd8c0bd4d23eb04afce1a5eeee8e07982
bpo-43268: Replace _PyThreadState_GET() with _PyInterpreterState_GET() (GH-24576)

Replace _PyThreadState_GET() with _PyInterpreterState_GET() in
functions which only need the current interpreter, but don't need the
current Python thread state.

Replace also _PyThreadState_UncheckedGet() with _PyThreadState_GET()
in faulthandler.c, since _PyThreadState_UncheckedGet() is just an
alias to _PyThreadState_GET() in practice.
Include/internal/pycore_long.h
Include/internal/pycore_object.h
Modules/faulthandler.c