File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -774,7 +774,6 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
774774{
775775    assert (interp  !=  NULL );
776776    assert (tstate  !=  NULL );
777-     _PyRuntimeState  * runtime  =  interp -> runtime ;
778777
779778    /* XXX Conditions we need to enforce: 
780779
@@ -1852,6 +1851,8 @@ _PyThreadState_RemoveExcept(PyThreadState *tstate)
18521851
18531852#ifdef  Py_GIL_DISABLED 
18541853    assert (runtime -> stoptheworld .world_stopped );
1854+ #else 
1855+     assert (runtime  !=  NULL );
18551856#endif 
18561857
18571858    INTERP_THREAD_LOCK (interp );
@@ -2336,7 +2337,6 @@ _PyEval_StartTheWorld(PyInterpreterState *interp)
23362337int 
23372338PyThreadState_SetAsyncExc (unsigned long  id , PyObject  * exc )
23382339{
2339-     _PyRuntimeState  * runtime  =  & _PyRuntime ;
23402340    PyInterpreterState  * interp  =  _PyInterpreterState_GET ();
23412341
23422342    /* Although the GIL is held, a few C API functions can be called 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments