gh-151627: protect OrderedDict iterator creation · python/cpython@ba229fd · GitHub
Skip to content

Commit ba229fd

Browse files
committed
gh-151627: protect OrderedDict iterator creation
1 parent d701f8e commit ba229fd

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lib/test/test_free_threading/test_collections.py

Lines changed: 26 additions & 1 deletion
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a crash in :class:`collections.OrderedDict` iterators in free-threaded
2+
builds when the dictionary is concurrently cleared or updated.

Objects/odictobject.c

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)