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.
1 parent 1b97477 commit 575a299Copy full SHA for 575a299
1 file changed
Python/pystate.c
@@ -1610,7 +1610,8 @@ static inline void
1610
tstate_activate(PyThreadState *tstate)
1611
{
1612
assert(tstate != NULL);
1613
- assert(tstate_is_alive(tstate) && tstate_is_bound(tstate));
+ // XXX assert(tstate_is_alive(tstate));
1614
+ assert(tstate_is_bound(tstate));
1615
assert(!tstate->_status.active);
1616
1617
if (!tstate->_status.bound_gilstate) {
@@ -1719,7 +1720,8 @@ _PyThreadState_Swap(_PyRuntimeState *runtime, PyThreadState *newts)
1719
1720
tstate_deactivate(oldts);
1721
}
1722
if (newts != NULL) {
- assert(tstate_is_alive(newts) && tstate_is_bound(newts));
1723
+ // XXX assert(tstate_is_alive(newts));
1724
+ assert(tstate_is_bound(newts));
1725
current_fast_set(runtime, newts);
1726
tstate_activate(newts);
1727
0 commit comments