Skip to content

gh-144774: Fix data race in BaseException.__setstate__ in free-thread…#144828

Draft
priyanshu2282-cyber wants to merge 1 commit intopython:mainfrom
priyanshu2282-cyber:fix-exception-setstate-race
Draft

gh-144774: Fix data race in BaseException.__setstate__ in free-thread…#144828
priyanshu2282-cyber wants to merge 1 commit intopython:mainfrom
priyanshu2282-cyber:fix-exception-setstate-race

Conversation

@priyanshu2282-cyber
Copy link
Contributor

This change ensures that the dictionary iteration happens under the appropriate critical section, preventing concurrent access during the operation.

This fixes the race condition reported in gh-144774.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant