]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117376: Make code objects use deferred reference counting (#117823)
authorSam Gross <colesbury@gmail.com>
Tue, 16 Apr 2024 16:42:53 +0000 (12:42 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Apr 2024 16:42:53 +0000 (12:42 -0400)
commit241ed5f2cdd525de0e136d0e3ce70d5487721c10
tree0591c971d1b41e43349f88fd05c0e0067404f9e7
parenta734fd5cf71ab8d7eb17ba5d6592fcc23679656b
gh-117376: Make code objects use deferred reference counting (#117823)

We want code objects to use deferred reference counting in the
free-threaded build. This requires them to be tracked by the GC, so we
set `Py_TPFLAGS_HAVE_GC` in the free-threaded build, but not the default
build.
Lib/test/test_capi/test_watchers.py
Lib/test/test_gc.py
Objects/codeobject.c