aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorAnthony Shaw <anthony.p.shaw@gmail.com>2024-08-25 06:36:42 +1000
committerGitHub <noreply@github.com>2024-08-24 20:36:42 +0000
commit86f06cb3fbe55db7d8ad5e32698076e5cc5c3c07 (patch)
tree6742481ae3b9b455920a9738b436d6e1ab3e8689 /Python/pystate.c
parentca18ff2a34435faa557f7f9d4d3a554dadb05e50 (diff)
downloadcpython-86f06cb3fbe55db7d8ad5e32698076e5cc5c3c07.tar.gz
cpython-86f06cb3fbe55db7d8ad5e32698076e5cc5c3c07.zip
Remove comment from pystate created in 2003 (#123259)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 4d7bec65ff5..54caf373e91 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -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 */