Skip to content

Commit bf37dcc

Browse files
committed
Merge branch 'pythongh-117303-fork-delete-current' into nogil-integration
2 parents 84edfe4 + 9503cd5 commit bf37dcc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/pystate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,6 @@ static void
16721672
tstate_delete_common(PyThreadState *tstate)
16731673
{
16741674
assert(tstate->_status.cleared && !tstate->_status.finalized);
1675-
assert(tstate->state != _Py_THREAD_ATTACHED);
16761675
tstate_verify_not_active(tstate);
16771676
assert(!_PyThreadState_IsRunningMain(tstate));
16781677

@@ -1752,7 +1751,6 @@ _PyThreadState_DeleteCurrent(PyThreadState *tstate)
17521751
#ifdef Py_GIL_DISABLED
17531752
_Py_qsbr_detach(((_PyThreadStateImpl *)tstate)->qsbr);
17541753
#endif
1755-
tstate_set_detached(tstate, _Py_THREAD_DETACHED);
17561754
current_fast_clear(tstate->interp->runtime);
17571755
tstate_delete_common(tstate);
17581756
_PyEval_ReleaseLock(tstate->interp, NULL);

0 commit comments

Comments
 (0)