mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	GH-127010: Don't lazily track and untrack dicts (GH-127027)
This commit is contained in:
		
							parent
							
								
									7191b7662e
								
							
						
					
					
						commit
						aea0c586d1
					
				
					 12 changed files with 43 additions and 282 deletions
				
			
		
							
								
								
									
										4
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -7435,10 +7435,6 @@ | |||
|                 DEOPT_IF(ep->me_key != name, STORE_ATTR); | ||||
|                 PyObject *old_value = ep->me_value; | ||||
|                 DEOPT_IF(old_value == NULL, STORE_ATTR); | ||||
|                 /* Ensure dict is GC tracked if it needs to be */ | ||||
|                 if (!_PyObject_GC_IS_TRACKED(dict) && _PyObject_GC_MAY_BE_TRACKED(PyStackRef_AsPyObjectBorrow(value))) { | ||||
|                     _PyObject_GC_TRACK(dict); | ||||
|                 } | ||||
|                 _PyFrame_SetStackPointer(frame, stack_pointer); | ||||
|                 _PyDict_NotifyEvent(tstate->interp, PyDict_EVENT_MODIFIED, dict, name, PyStackRef_AsPyObjectBorrow(value)); | ||||
|                 stack_pointer = _PyFrame_GetStackPointer(frame); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Shannon
						Mark Shannon