summaryrefslogtreecommitdiffstats
path: root/Python/gc_free_threading.c
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@meta.com>2024-04-19 21:47:42 (GMT)
committerGitHub <noreply@github.com>2024-04-19 21:47:42 (GMT)
commit07525c9a85e7fa04db565c6e6e6605ff6099dcb7 (patch)
treeb12112a245641172073d1f1df8212aa082ec8db8 /Python/gc_free_threading.c
parentb45af00bad3449b85c8f54ba7a9474ca1f52de69 (diff)
downloadcpython-07525c9a85e7fa04db565c6e6e6605ff6099dcb7.zip
cpython-07525c9a85e7fa04db565c6e6e6605ff6099dcb7.tar.gz
cpython-07525c9a85e7fa04db565c6e6e6605ff6099dcb7.tar.bz2
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.
Diffstat (limited to 'Python/gc_free_threading.c')
0 files changed, 0 insertions, 0 deletions