mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	gh-110481: Implement biased reference counting (gh-110764)
This commit is contained in:
		
							parent
							
								
									05f2f0ac92
								
							
						
					
					
						commit
						6dfb8fe023
					
				
					 29 changed files with 511 additions and 52 deletions
				
			
		|  | @ -46,12 +46,13 @@ | |||
| #  error "ceval.c must be build with Py_BUILD_CORE define for best performance" | ||||
| #endif | ||||
| 
 | ||||
| #if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) | ||||
| #if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_NOGIL) | ||||
| // GH-89279: The MSVC compiler does not inline these static inline functions
 | ||||
| // in PGO build in _PyEval_EvalFrameDefault(), because this function is over
 | ||||
| // the limit of PGO, and that limit cannot be configured.
 | ||||
| // Define them as macros to make sure that they are always inlined by the
 | ||||
| // preprocessor.
 | ||||
| // TODO: implement Py_DECREF macro for Py_NOGIL
 | ||||
| 
 | ||||
| #undef Py_DECREF | ||||
| #define Py_DECREF(arg) \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Gross
						Sam Gross