mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	 07525c9a85
			
		
	
	
		07525c9a85
		
			
		
	
	
	
	
		
			
			Makes sys.settrace, sys.setprofile, and monitoring generally thread-safe. Mostly uses a stop-the-world approach and synchronization around the code object's _co_instrumentation_version. There may be a little bit of extra synchronization around the monitoring data that's required to be TSAN clean.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import os
 | |
| 
 | |
| from test import support
 | |
| 
 | |
| 
 | |
| def load_tests(*args):
 | |
|     return support.load_package_tests(os.path.dirname(__file__), *args)
 |