We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca18ff2 commit 86f06cbCopy full SHA for 86f06cb
Python/pystate.c
@@ -2802,16 +2802,11 @@ PyGILState_Release(PyGILState_STATE oldstate)
2802
}
2803
2804
/* We must hold the GIL and have our thread state current */
2805
- /* XXX - remove the check - the assert should be fine,
2806
- but while this is very new (April 2003), the extra check
2807
- by release-only users can't hurt.
2808
- */
2809
if (!holds_gil(tstate)) {
2810
_Py_FatalErrorFormat(__func__,
2811
"thread state %p must be current when releasing",
2812
tstate);
2813
2814
- assert(holds_gil(tstate));
2815
--tstate->gilstate_counter;
2816
assert(tstate->gilstate_counter >= 0); /* illegal counter value */
2817
0 commit comments