]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116604: Check for `gcstate->enabled` in _Py_RunGC in free-threaded build (#116663)
authorSam Gross <colesbury@gmail.com>
Tue, 12 Mar 2024 17:12:02 +0000 (13:12 -0400)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2024 17:12:02 +0000 (17:12 +0000)
commit5d72b753889977fa6d2d015499de03f94e16b035
tree9bd1481bf1ff75573db69f78c8d85e8989eb351d
parentdf4784b3b7519d137ca6a1aeb500ef59e24a7f9b
gh-116604: Check for `gcstate->enabled` in _Py_RunGC in free-threaded build (#116663)

This isn't strictly necessary because the implementation of `gc_should_collect`
already checks `gcstate->enabled` in the free-threaded build, but it seems
like a good idea until the common pieces of gc.c and gc_free_threading.c are
refactored out.
Python/gc_free_threading.c