mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Issue #23524: Replace _PyVerify_fd function with calls to _set_thread_local_invalid_parameter_handler.
This commit is contained in:
		
							parent
							
								
									fe0a41aae4
								
							
						
					
					
						commit
						8fc8980c96
					
				
					 11 changed files with 150 additions and 69 deletions
				
			
		|  | @ -22,12 +22,6 @@ to avoid the expense of doing their own locking). | |||
| #endif | ||||
| #endif | ||||
| 
 | ||||
| #if defined _MSC_VER && _MSC_VER >= 1900 | ||||
| /* Issue #23524: Temporary fix to disable termination due to invalid parameters */ | ||||
| PyAPI_DATA(void*) _Py_silent_invalid_parameter_handler; | ||||
| #include <stdlib.h> | ||||
| #endif | ||||
| 
 | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif | ||||
|  | @ -228,11 +222,6 @@ new_threadstate(PyInterpreterState *interp, int init) | |||
|             tstate->next->prev = tstate; | ||||
|         interp->tstate_head = tstate; | ||||
|         HEAD_UNLOCK(); | ||||
| 
 | ||||
| #if defined _MSC_VER && _MSC_VER >= 1900 | ||||
|         /* Issue #23524: Temporary fix to disable termination due to invalid parameters */ | ||||
|         _set_thread_local_invalid_parameter_handler((_invalid_parameter_handler)_Py_silent_invalid_parameter_handler); | ||||
| #endif | ||||
|     } | ||||
| 
 | ||||
|     return tstate; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Steve Dower
						Steve Dower