8000
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.
unused-variable
pystate.c
1 parent 3847a6c commit 8be6992Copy full SHA for 8be6992
Python/pystate.c
@@ -1878,11 +1878,14 @@ _PyGILState_SetTstate(PyThreadState *tstate)
1878
* interpreter is responsible to initialize it. */
1879
return _PyStatus_OK();
1880
}
1881
+
1882
+#ifndef NDEBUG
1883
_PyRuntimeState *runtime = tstate->interp->runtime;
1884
1885
assert(runtime->gilstate.autoInterpreterState == tstate->interp);
1886
assert(current_tss_get(runtime) == tstate);
1887
assert(tstate->gilstate_counter == 1);
1888
+#endif
1889
1890
1891
0 commit comments