SIGN IN SIGN UP

gh-117688: Fix deadlock in test_no_stale_references with GIL disabled (#117720)

Check `my_object_collected.wait()` in a loop to give the main thread a
chance to merge the reference count fields. Additionally, call
`my_object_collected.set()` in a background thread to avoid deadlocking
when the destructor is called asynchronously via the eval breaker
within the body of of `my_object_collected.wait()`.
S
Sam Gross committed
520cf2170ea08730e142d591e311b7ab8a6afe63
Parent: 106e9dd
Committed by GitHub <noreply@github.com> on 4/15/2024, 4:54:56 PM