gh-137400: Stop the world when swapping profile functions by godlygeek · Pull Request #137472 · python/cpython
One thread's profile function or profile object can be changed from another thread, for instance by `sys._setprofileallthreads`. This can lead to crashes unless the two threads are synchronized. We need a stop-the-world to ensure that the thread whose profile function or profile object is being changed is in a state where it's not in the middle of using either of those pointers. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters