Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60593b2 commit 90ec19fCopy full SHA for 90ec19f
2 files changed
Python/qsbr.c
@@ -160,7 +160,8 @@ qsbr_poll_scan(struct _qsbr_shared *shared)
160
bool
161
_Py_qsbr_poll(struct _qsbr_thread_state *qsbr, uint64_t goal)
162
{
163
- assert(_PyThreadState_GET()->state == _Py_THREAD_ATTACHED);
+ assert(_Py_atomic_load_int_relaxed(&_PyThreadState_GET()->state) == _Py_THREAD_ATTACHED);
164
+
165
if (_Py_qbsr_goal_reached(qsbr, goal)) {
166
return true;
167
}
Tools/tsan/suppressions_free_threading.txt
@@ -75,8 +75,6 @@ race_top:_PyFrame_GetCode
75
race_top:_PyFrame_Initialize
76
race_top:PyInterpreterState_ThreadHead
77
race_top:_PyObject_TryGetInstanceAttribute
78
-race_top:_Py_qsbr_unregister
79
-race_top:_Py_qsbr_poll
80
race_top:PyThreadState_Next
81
race_top:Py_TYPE
82
race_top:PyUnstable_InterpreterFrame_GetLine
0 commit comments