gh-119369: Fix deadlock during thread exit in free-threaded build (#119528)
Release the GIL before calling `_Py_qsbr_unregister`. The deadlock could occur when the GIL was enabled at runtime. The `_Py_qsbr_unregister` call might block while holding the GIL because the thread state was not active, but the GIL was still held.
S
Sam Gross committed
078b8c8cf2bf68f7484cc4d2e3dd74b6fab55664
Parent: 64ff1e2
Committed by GitHub <noreply@github.com>
on 5/31/2024, 5:04:59 PM