diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-22 14:08:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 14:08:42 (GMT) |
commit | f1c6ae3270913e095d24ae13ecf96f5a32c8c503 (patch) | |
tree | 99ebab0c63baa9015dbf3c4a9a5a0873e3c9a73d /Python/formatter_unicode.c | |
parent | c8a536624e8f5d6612e3c275c5b19592583a8cf8 (diff) | |
download | cpython-f1c6ae3270913e095d24ae13ecf96f5a32c8c503.zip cpython-f1c6ae3270913e095d24ae13ecf96f5a32c8c503.tar.gz cpython-f1c6ae3270913e095d24ae13ecf96f5a32c8c503.tar.bz2 |
bpo-46417: Fix race condition on setting type __bases__ (GH-30788)
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.
Diffstat (limited to 'Python/formatter_unicode.c')
0 files changed, 0 insertions, 0 deletions