]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113750: Fix object resurrection in free-threaded builds (gh-113751)
authorSam Gross <colesbury@gmail.com>
Sat, 6 Jan 2024 03:12:26 +0000 (22:12 -0500)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 03:12:26 +0000 (12:12 +0900)
commitd0f0308a373298a8906ee5a7546275e1b2e906ea
tree2220f010051413aadc70662c9f76add31260228b
parent3375dfed400494ba5cc1b744d52f6fb8b7796059
gh-113750: Fix object resurrection in free-threaded builds (gh-113751)

gh-113750: Fix object resurrection on free-threaded builds

This avoids the undesired re-initializing of fields like `ob_gc_bits`,
`ob_mutex`, and `ob_tid` when an object is resurrected due to its
finalizer being called.

This change has no effect on the default (with GIL) build.
Include/cpython/object.h
Modules/_testcapi/gc.c
Objects/object.c