Skip to content

Use stop-the-world to make sys._current_frames() and sys._current_exceptions() thread-safe in free-threaded build #117300

Description

@colesbury

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions