Skip to content

gh-116604: Check for gcstate->enabled in _Py_RunGC in free-threaded build #116663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Mar 12, 2024

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.

…readed build

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.
@colesbury colesbury enabled auto-merge (squash) March 12, 2024 16:47
@colesbury colesbury merged commit 5d72b75 into python:main Mar 12, 2024
@colesbury colesbury deleted the gh-116604-rungc branch March 20, 2024 16:06
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…readed build (python#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.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…readed build (python#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants