summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-01-22 14:28:36 (GMT)
committerGitHub <noreply@github.com>2022-01-22 14:28:36 (GMT)
commitacda9f3b90c33e4020237cb9e5c676efb38f7847 (patch)
treeb4654f7a79ca37972c4472869c3adfa9344b30ac /Lib/test/test_exceptions.py
parent6111d5dee2b24916ff95dba56efc569396a31851 (diff)
downloadcpython-acda9f3b90c33e4020237cb9e5c676efb38f7847.zip
cpython-acda9f3b90c33e4020237cb9e5c676efb38f7847.tar.gz
cpython-acda9f3b90c33e4020237cb9e5c676efb38f7847.tar.bz2
bpo-46417: Fix race condition on setting type __bases__ (GH-30788) (GH-30789)
Fix a race condition on setting a type __bases__ attribute: the internal function add_subclass() now gets the PyTypeObject.tp_subclasses member after calling PyWeakref_NewRef() which can trigger a garbage collection which can indirectly modify PyTypeObject.tp_subclasses. (cherry picked from commit f1c6ae3270913e095d24ae13ecf96f5a32c8c503) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/test_exceptions.py')
0 files changed, 0 insertions, 0 deletions