gh-151627: protect OrderedDict iterator creation by pedramkarimii · Pull Request #151688 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-151627: protect OrderedDict iterator creation
  • Loading branch information
pedramkarimii committed Jun 19, 2026
commit ba229fd9c718f8cf236aa5ac73b3d836d3ec7980
27 changes: 26 additions & 1 deletion Lib/test/test_free_threading/test_collections.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a crash in :class:`collections.OrderedDict` iterators in free-threaded
builds when the dictionary is concurrently cleared or updated.
2 changes: 2 additions & 0 deletions Objects/odictobject.c
Loading