]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove comment from pystate created in 2003 (#123259)
authorAnthony Shaw <anthony.p.shaw@gmail.com>
Sat, 24 Aug 2024 20:36:42 +0000 (06:36 +1000)
committerGitHub <noreply@github.com>
Sat, 24 Aug 2024 20:36:42 +0000 (20:36 +0000)
Python/pystate.c

index 4d7bec65ff5c49f54fce919cd69044946c690a5a..54caf373e91d6cf803fc035ab872f09a96328c46 100644 (file)
@@ -2802,16 +2802,11 @@ PyGILState_Release(PyGILState_STATE oldstate)
     }
 
     /* We must hold the GIL and have our thread state current */
-    /* XXX - remove the check - the assert should be fine,
-       but while this is very new (April 2003), the extra check
-       by release-only users can't hurt.
-    */
     if (!holds_gil(tstate)) {
         _Py_FatalErrorFormat(__func__,
                              "thread state %p must be current when releasing",
                              tstate);
     }
-    assert(holds_gil(tstate));
     --tstate->gilstate_counter;
     assert(tstate->gilstate_counter >= 0); /* illegal counter value */