diff options
| author | Sam Gross <colesbury@gmail.com> | 2024-04-15 16:54:56 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 16:54:56 (GMT) |
| commit | 520cf2170ea08730e142d591e311b7ab8a6afe63 (patch) | |
| tree | 7be14a1bffc20cd73b06b3b19ad85ca2246700fc /Lib/test/test_interpreters/test_api.py | |
| parent | 106e9ddc435372f3977432d76d0b1cb46ac72c5f (diff) | |
| download | cpython-520cf2170ea08730e142d591e311b7ab8a6afe63.zip cpython-520cf2170ea08730e142d591e311b7ab8a6afe63.tar.gz cpython-520cf2170ea08730e142d591e311b7ab8a6afe63.tar.bz2 | |
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()`.
Diffstat (limited to 'Lib/test/test_interpreters/test_api.py')
0 files changed, 0 insertions, 0 deletions
