diff options
author | Dino Viehland <dinoviehland@meta.com> | 2024-04-19 21:47:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 21:47:42 (GMT) |
commit | 07525c9a85e7fa04db565c6e6e6605ff6099dcb7 (patch) | |
tree | b12112a245641172073d1f1df8212aa082ec8db8 /Python/gc_free_threading.c | |
parent | b45af00bad3449b85c8f54ba7a9474ca1f52de69 (diff) | |
download | cpython-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