File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,8 @@ qsbr_poll_scan(struct _qsbr_shared *shared)
160160bool
161161_Py_qsbr_poll (struct _qsbr_thread_state * qsbr , uint64_t goal )
162162{
163- assert (_PyThreadState_GET ()-> state == _Py_THREAD_ATTACHED );
163+ assert (_Py_atomic_load_int_relaxed (& _PyThreadState_GET ()-> state ) == _Py_THREAD_ATTACHED );
164+
164165 if (_Py_qbsr_goal_reached (qsbr , goal )) {
165166 return true;
166167 }
Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ race_top:_PyFrame_GetCode
7575race_top:_PyFrame_Initialize
7676race_top:PyInterpreterState_ThreadHead
7777race_top:_PyObject_TryGetInstanceAttribute
78- race_top:_Py_qsbr_unregister
79- race_top:_Py_qsbr_poll
8078race_top:PyThreadState_Next
8179race_top:Py_TYPE
8280race_top:PyUnstable_InterpreterFrame_GetLine
You can’t perform that action at this time.
0 commit comments