Skip to content

Commit 575a299

Browse files
Fixes for multiprocessing.
1 parent 1b97477 commit 575a299

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/pystate.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,8 @@ static inline void
16101610
tstate_activate(PyThreadState *tstate)
16111611
{
16121612
assert(tstate != NULL);
1613-
assert(tstate_is_alive(tstate) && tstate_is_bound(tstate));
1613+
// XXX assert(tstate_is_alive(tstate));
1614+
assert(tstate_is_bound(tstate));
16141615
assert(!tstate->_status.active);
16151616

16161617
if (!tstate->_status.bound_gilstate) {
@@ -1719,7 +1720,8 @@ _PyThreadState_Swap(_PyRuntimeState *runtime, PyThreadState *newts)
17191720
tstate_deactivate(oldts);
17201721
}
17211722
if (newts != NULL) {
1722-
assert(tstate_is_alive(newts) && tstate_is_bound(newts));
1723+
// XXX assert(tstate_is_alive(newts));
1724+
assert(tstate_is_bound(newts));
17231725
current_fast_set(runtime, newts);
17241726
tstate_activate(newts);
17251727
}

0 commit comments

Comments
 (0)