mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00

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)
|