summaryrefslogtreecommitdiffstats
path: root/Python/pystrcmp.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-03-11 19:14:20 (GMT)
committerGitHub <noreply@github.com>2024-03-11 19:14:20 (GMT)
commit9f983e00ec55b87a098a4c8229fe5bb9acb9f3ac (patch)
treed343547914c06c2f8f39a81f10858d5f104c8374 /Python/pystrcmp.c
parent05070f40bbc3384c36c8b3dab76345ba92098d42 (diff)
downloadcpython-9f983e00ec55b87a098a4c8229fe5bb9acb9f3ac.zip
cpython-9f983e00ec55b87a098a4c8229fe5bb9acb9f3ac.tar.gz
cpython-9f983e00ec55b87a098a4c8229fe5bb9acb9f3ac.tar.bz2
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".
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions