SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

gh-123089: Make weakref.WeakSet safe against concurrent mutations while it is being iterated (#123279)

* Make `weakref.WeakSet` safe against concurrent mutations while it is being iterated.

`_IterationGuard` is no longer used for `WeakSet`, it now relies on copying the underlying set which is an atomic operation while iterating so that it can be modified by other threads.
K
Kumar Aditya committed
03f5abf15a20f6e623282a393bc2a0affac69bb0
Parent: 6754566
Committed by GitHub <noreply@github.com> on 8/27/2024, 1:04:03 PM