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.
D
Dino Viehland committed
07525c9a85e7fa04db565c6e6e6605ff6099dcb7
Parent: b45af00
Committed by GitHub <noreply@github.com>
on 4/19/2024, 9:47:42 PM