mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	gh-121459: Fix a couple of uses of PyStackRef_FromPyObjectSteal (#125711)
				
					
				
			* Fix usage of PyStackRef_FromPyObjectSteal in CALL_TUPLE_1 This was missed in gh-124894 * Fix usage of PyStackRef_FromPyObjectSteal in _CALL_STR_1 This was missed in gh-124894 * Regenerate code
This commit is contained in:
		
							parent
							
								
									695814c6e9
								
							
						
					
					
						commit
						de5a6c7c7d
					
				
					 3 changed files with 18 additions and 12 deletions
				
			
		
							
								
								
									
										10
									
								
								Python/executor_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								Python/executor_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -4299,10 +4299,11 @@ | |||
|             } | ||||
|             STAT_INC(CALL, hit); | ||||
|             _PyFrame_SetStackPointer(frame, stack_pointer); | ||||
|             res = PyStackRef_FromPyObjectSteal(PyObject_Str(arg_o)); | ||||
|             PyObject *res_o = PyObject_Str(arg_o); | ||||
|             stack_pointer = _PyFrame_GetStackPointer(frame); | ||||
|             PyStackRef_CLOSE(arg); | ||||
|             if (PyStackRef_IsNull(res)) JUMP_TO_ERROR(); | ||||
|             if (res_o == NULL) JUMP_TO_ERROR(); | ||||
|             res = PyStackRef_FromPyObjectSteal(res_o); | ||||
|             stack_pointer[-3] = res; | ||||
|             stack_pointer += -2; | ||||
|             assert(WITHIN_STACK_BOUNDS()); | ||||
|  | @ -4331,10 +4332,11 @@ | |||
|             } | ||||
|             STAT_INC(CALL, hit); | ||||
|             _PyFrame_SetStackPointer(frame, stack_pointer); | ||||
|             res = PyStackRef_FromPyObjectSteal(PySequence_Tuple(arg_o)); | ||||
|             PyObject *res_o = PySequence_Tuple(arg_o); | ||||
|             stack_pointer = _PyFrame_GetStackPointer(frame); | ||||
|             PyStackRef_CLOSE(arg); | ||||
|             if (PyStackRef_IsNull(res)) JUMP_TO_ERROR(); | ||||
|             if (res_o == NULL) JUMP_TO_ERROR(); | ||||
|             res = PyStackRef_FromPyObjectSteal(res_o); | ||||
|             stack_pointer[-3] = res; | ||||
|             stack_pointer += -2; | ||||
|             assert(WITHIN_STACK_BOUNDS()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mpage
						mpage