mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	gh-110752: Reset ceval.eval_breaker to 0 in interpreter_clear (GH-110753)
				
					
				
			This commit is contained in:
		
							parent
							
								
									b6000d2874
								
							
						
					
					
						commit
						1e3460d9fa
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		|  | @ -0,0 +1 @@ | |||
| Reset ``ceval.eval_breaker`` in :func:`interpreter_clear` | ||||
|  | @ -890,6 +890,10 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate) | |||
| 
 | ||||
|     Py_CLEAR(interp->audit_hooks); | ||||
| 
 | ||||
|     // At this time, all the threads should be cleared so we don't need
 | ||||
|     // atomic operations for eval_breaker
 | ||||
|     interp->ceval.eval_breaker = 0; | ||||
| 
 | ||||
|     for (int i = 0; i < _PY_MONITORING_UNGROUPED_EVENTS; i++) { | ||||
|         interp->monitors.tools[i] = 0; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tian Gao
						Tian Gao