]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115103: Fix unregistering of QSBR state (#116480)
authorSam Gross <colesbury@gmail.com>
Fri, 8 Mar 2024 17:39:53 +0000 (12:39 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Mar 2024 17:39:53 +0000 (12:39 -0500)
commitcca30230d992c46dfb607dcc24b3dc2e6d05f536
tree171669b5ce0ef42762da805aeb00d8c110249ba0
parent7cee276d551a41d9271daf2a6bcd7def55555973
gh-115103: Fix unregistering of QSBR state (#116480)

If a thread blocks while waiting on the `shared->mutex` lock, the array
of QSBR states may be reallocated. The `tstate->qsbr` values before the
lock is acquired may not be the same as the value after the lock is acquired.
Python/qsbr.c