Skip to content

Free-threaded dictionary lookups aren't marking objects as weakref'd #124642

Closed

Description

@DinoV

Bug report

Bug description:

Dictionaries have a fast path which doesn't lock on lookups and a slow path which does. The intention is that the fast-path will succeed after the first slow-path lookup has been passed. But currently we're not parking objects as shared so it always fails.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. self-assigned this
    on Sep 26, 2024
  2. added a commit that references this issue on Sep 30, 2024
  3. added a commit that references this issue on Sep 30, 2024
  4. added a commit that references this issue on Sep 30, 2024
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