Skip to content

gh-141510: Update mp_length of frozendict to use non atomic operation#144913

Merged
corona10 merged 1 commit intopython:mainfrom
corona10:gh-141510-non-atomic
Feb 17, 2026
Merged

gh-141510: Update mp_length of frozendict to use non atomic operation#144913
corona10 merged 1 commit intopython:mainfrom
corona10:gh-141510-non-atomic

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Feb 17, 2026

@corona10
Copy link
Member Author

cc @kumaraditya303

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

A frozendict is immutable, its size cannot change, and so it's safe to access it without atomic operation.

@corona10 corona10 merged commit fc05e5e into python:main Feb 17, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments