Skip to content
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

[3.13] gh-117657: Fix race involving immortalizing objects (GH-119927) #120005

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Jun 3, 2024

The free-threaded build currently immortalizes objects that use deferred reference counting (see gh-117783). This typically happens once the first non-main thread is created, but the behavior can be suppressed for tests, in subinterpreters, or during a compile() call.

This fixes a race condition involving the tracking of whether the behavior is suppressed.

(cherry picked from commit 47fb432)

)

The free-threaded build currently immortalizes objects that use deferred
reference counting (see pythongh-117783). This typically happens once the
first non-main thread is created, but the behavior can be suppressed for
tests, in subinterpreters, or during a compile() call.

This fixes a race condition involving the tracking of whether the
behavior is suppressed.

(cherry picked from commit 47fb432)
@colesbury colesbury enabled auto-merge (squash) June 3, 2024 22:01
@colesbury colesbury merged commit ae70531 into python:3.13 Jun 3, 2024
34 checks passed
@colesbury colesbury deleted the backport-47fb432-3.13 branch June 3, 2024 22:24
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.

1 participant