gh-116515: Clear thread-local state before tstate_delete_common() (#116517)
This moves `current_fast_clear()` up so that the current thread state is `NULL` while running `tstate_delete_common()`. This doesn't fix any bugs, but it means that we are more consistent that `_PyThreadState_GET() != NULL` means that the thread is "attached".
S
Sam Gross committed
9f983e00ec55b87a098a4c8229fe5bb9acb9f3ac
Parent: 05070f4
Committed by GitHub <noreply@github.com>
on 3/11/2024, 7:14:20 PM