cpython/Lib/test/test_free_threading/__init__.py
Dino Viehland 07525c9a85
gh-116818: Make sys.settrace, sys.setprofile, and monitoring thread-safe (#116775)
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.
2024-04-19 14:47:42 -07:00

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)