Skip to content

gh-153881: Atomically load dk_nentries in _PyObject_IsInstanceDictEmpty#153882

Open
brijkapadia wants to merge 1 commit into
python:mainfrom
brijkapadia:dict-race
Open

gh-153881: Atomically load dk_nentries in _PyObject_IsInstanceDictEmpty#153882
brijkapadia wants to merge 1 commit into
python:mainfrom
brijkapadia:dict-race

Conversation

@brijkapadia

@brijkapadia brijkapadia commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

@@ -0,0 +1 @@
Fix potential data race when calling :meth:`object.__getstate__`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Fix potential data race when calling :meth:`object.__getstate__`.
Fix potential data race when calling :meth:`object.__getstate__` under the free-threaded build.

I think we should make it clear to users that this data race is only possible under the FT build.

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.

2 participants