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

gh-114271: Make PyInterpreterState.threads.count thread-safe in free-threaded builds #115093

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

mpage
Copy link
Contributor

@mpage mpage commented Feb 6, 2024

Use atomics to mutate PyInterpreterState.threads.count

@mpage mpage marked this pull request as ready for review February 6, 2024 19:12
@mpage
Copy link
Contributor Author

mpage commented Feb 6, 2024

@colesbury - Can you add the "skip news" label to this?

@mpage
Copy link
Contributor Author

mpage commented Feb 12, 2024

@colesbury - Would you take a look at this, please?

Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsnowcurrently ericsnowcurrently merged commit de7d67b into python:main Feb 12, 2024
38 checks passed
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this pull request Feb 14, 2024
…in free-threaded builds (pythongh-115093)

Use atomics to mutate PyInterpreterState.threads.count.
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.

3 participants