mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
[3.13] gh-117657: Fix QSBR race condition (GH-118843) (#118905)
`_Py_qsbr_unregister` is called when the PyThreadState is already
detached, so the access to `tstate->qsbr` isn't safe without locking the
shared mutex. Grab the `struct _qsbr_shared` from the interpreter
instead.
(cherry picked from commit 33d20199af)
Co-authored-by: Alex Turner <alexturner@meta.com>
This commit is contained in:
parent
0874a400a8
commit
0becae366c
4 changed files with 8 additions and 8 deletions
|
|
@ -38,7 +38,6 @@ race_top:_PyParkingLot_Park
|
|||
race_top:_PyType_HasFeature
|
||||
race_top:assign_version_tag
|
||||
race_top:gc_restore_tid
|
||||
race_top:initialize_new_array
|
||||
race_top:insertdict
|
||||
race_top:lookup_tp_dict
|
||||
race_top:mi_heap_visit_pages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue