Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix thread-safety for PyType_IsSubtype in free-threaded builds #117306

Copy link
Copy link
@mpage

Description

@mpage
Issue body actions

Feature or enhancement

Proposal:

In #117275 we started performing reads of the MRO in PyType_IsSubtype in a thread-unsafe way. We need to read the MRO in a way that ideally doesn't lock, or at the very least locks without the possibility of suspending.

One potential solution is to use deferred reference counting to avoid locking.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.