Skip to content

[3.14] gh-137238: Fix data race in _Py_slot_tp_getattr_hook (gh-137240)#137416

Merged
colesbury merged 2 commits intopython:3.14from
colesbury:backport-485b16b-3.14
Oct 7, 2025
Merged

[3.14] gh-137238: Fix data race in _Py_slot_tp_getattr_hook (gh-137240)#137416
colesbury merged 2 commits intopython:3.14from
colesbury:backport-485b16b-3.14

Conversation

@colesbury
Copy link
Copy Markdown
Contributor

@colesbury colesbury commented Aug 5, 2025

Replacing the slot isn't thread-safe if the GIL is disabled. Don't require that the slot has been replaced when specializing. (cherry picked from commit 485b16b)

…ythongh-137240)

Replacing the slot isn't thread-safe if the GIL is disabled. Don't
require that the slot has been replaced when specializing.
(cherry picked from commit 485b16b)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury
Copy link
Copy Markdown
Contributor Author

This can wait for 3.14.1

@colesbury colesbury enabled auto-merge (squash) October 7, 2025 17:12
@colesbury colesbury merged commit 85dabb9 into python:3.14 Oct 7, 2025
44 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.

1 participant