Skip to content

gh-130605: Use relaxed atomics to set the GIL switch interval #130654

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
Feb 28, 2025

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Feb 27, 2025

The interval may be concurrently read by a thread attempting to acquire the GIL.

The interval may be concurrently read by a thread attempting to acquire
the GIL.
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. I cannot find other places accessing gil->interval.

@colesbury colesbury merged commit 038e4d6 into python:main Feb 28, 2025
49 checks passed
@colesbury colesbury deleted the gh-130605-set-switch-interval branch February 28, 2025 14:27
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…ythongh-130654)

The interval may be concurrently read by a thread attempting to acquire
the GIL.
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.

4 participants