Skip to content

gh-145446: Add critical section in functools module for PyDict_Next#145487

Open
bkap123 wants to merge 3 commits intopython:mainfrom
bkap123:critical
Open

gh-145446: Add critical section in functools module for PyDict_Next#145487
bkap123 wants to merge 3 commits intopython:mainfrom
bkap123:critical

Conversation

@bkap123
Copy link
Contributor

@bkap123 bkap123 commented Mar 3, 2026

Added a critical section whenever PyDict_Next is called in Module/_functoolsmodule.c in the free-threaded build.

Additionally, I had to manually remove the lock created by a critical section in case of an early return due to an error.

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