File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3158,7 +3158,7 @@ static int
31583158try_acquire_strong_ref (PyInterpreterState * interp , PyInterpreterRef * strong_ptr )
31593159{
31603160 _PyRWMutex_RLock (& interp -> references .lock );
3161- if (_PyInterpreterState_GetFinalizing (interp ) = = NULL ) {
3161+ if (_PyInterpreterState_GetFinalizing (interp ) ! = NULL ) {
31623162 * strong_ptr = 0 ;
31633163 _PyRWMutex_RUnlock (& interp -> references .lock );
31643164 return -1 ;
@@ -3356,7 +3356,6 @@ PyThreadState_Release(PyThreadRef thread_ref)
33563356 Py_FatalError ("PyThreadState_Release() called more times than PyThreadState_Ensure()" );
33573357 }
33583358 // The thread reference might be NULL
3359- assert (thread_ref >= 0 );
33603359 PyThreadState * to_restore = (PyThreadState * )thread_ref ;
33613360 if (remaining == 0 ) {
33623361 if (tstate -> ensure .delete_on_release ) {
You can’t perform that action at this time.
0 commit comments