Skip to content

Commit 86f06cb

Browse files
authored
Remove comment from pystate created in 2003 (#123259)
1 parent ca18ff2 commit 86f06cb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Python/pystate.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,16 +2802,11 @@ PyGILState_Release(PyGILState_STATE oldstate)
28022802
}
28032803

28042804
/* 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-
*/
28092805
if (!holds_gil(tstate)) {
28102806
_Py_FatalErrorFormat(__func__,
28112807
"thread state %p must be current when releasing",
28122808
tstate);
28132809
}
2814-
assert(holds_gil(tstate));
28152810
--tstate->gilstate_counter;
28162811
assert(tstate->gilstate_counter >= 0); /* illegal counter value */
28172812

0 commit comments

Comments
 (0)