gh-151627: fix thread safety of OrderedDict iterator creation (#151688) · python/cpython@86dab7c · GitHub
Skip to content

Commit 86dab7c

Browse files
gh-151627: fix thread safety of OrderedDict iterator creation (#151688)
1 parent a646c99 commit 86dab7c

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)