]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 7 Dec 2021 21:37:51 +0000 (14:37 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Dec 2021 21:37:51 +0000 (13:37 -0800)
commit9b577cd01f66512b503115c0fdbf0734edfd5f8a
treecc98fb8d68d0cafc0e7e3e6a4b55cfc8674a7334
parent313f92a57bc3887026ec16adb536bb2b7580ce47
bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972)

Doing so allows us to stop assigning various fields to `NULL` and 0.  It also more closely matches the behavior of a static initializer.

Automerge-Triggered-By: GH:ericsnowcurrently
Python/pystate.c