]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 8 Dec 2021 00:26:29 +0000 (17:26 -0700)
committerGitHub <noreply@github.com>
Wed, 8 Dec 2021 00:26:29 +0000 (17:26 -0700)
commit1f384e318481532323bb9076f4447bc02da07209
tree41a6930e45fffdae2fa98b83fc1c94f3087115bd
parent9b577cd01f66512b503115c0fdbf0734edfd5f8a
bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973)

This simplifies new_threadstate().  We also rename _PyThreadState_Init() to _PyThreadState_SetCurrent() to reflect what it actually does.

https://bugs.python.org/issue46008
Include/internal/pycore_pystate.h
Modules/_threadmodule.c
Python/pystate.c