We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a631f7e commit c3f3371Copy full SHA for c3f3371
1 file changed
src/vmprof_common.h
@@ -136,9 +136,9 @@ PyThreadState * get_current_thread_state(void)
136
{
137
#if PY_MAJOR_VERSION < 3
138
return _PyThreadState_Current;
139
-#elif PY_VERSION_HEX < 0x03050000
+#elif PY_VERSION_HEX < 0x03050200
140
return (PyThreadState*) _Py_atomic_load_relaxed(&_PyThreadState_Current);
141
#else
142
- return PyThreadState_GET();
+ return _PyThreadState_UncheckedGet();
143
#endif
144
}
0 commit comments