gh-151633: avoid use-after-free in `Counter.update` by KowalskiThomas · Pull Request #151634 · python/cpython · GitHub
Skip to content
Open
14 changes: 13 additions & 1 deletion Lib/test/test_free_threading/test_collections.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a race condition under free-threading when multiple threads update the same :class:`~collections.Counter` concurrently.
54 changes: 33 additions & 21 deletions Modules/_collectionsmodule.c
Loading