gh-117657: Fix QSBR race condition (#118843)
`_Py_qsbr_unregister` is called when the PyThreadState is already detached, so the access to `tstate->qsbr` isn't safe without locking the shared mutex. Grab the `struct _qsbr_shared` from the interpreter instead.
A
Alex Turner committed
33d20199af65c741bdc908a968edd8dc179b6974
Parent: 22d5185
Committed by GitHub <noreply@github.com>
on 5/10/2024, 2:26:35 PM