Feature or enhancement
The sys._current_frames and sys._current_exceptions functions rely on the GIL for thread-safety. We should use the stop the world mechanism to pause other threads so that we can safely capture the current frames and exceptions in other threads in the free-threaded build.
Linked PRs
Feature or enhancement
The
sys._current_framesandsys._current_exceptionsfunctions rely on the GIL for thread-safety. We should use the stop the world mechanism to pause other threads so that we can safely capture the current frames and exceptions in other threads in the free-threaded build.Linked PRs
sys._current_framesandsys._current_exceptionsthread-safe. #117301