X Tutup
Skip to content

[3.13] gh-127020: Make PyCode_GetCode thread-safe for free threading (GH-127043)#127107

Merged
colesbury merged 1 commit intopython:3.13from
miss-islington:backport-3926842-3.13
Nov 21, 2024
Merged

[3.13] gh-127020: Make PyCode_GetCode thread-safe for free threading (GH-127043)#127107
colesbury merged 1 commit intopython:3.13from
miss-islington:backport-3926842-3.13

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 21, 2024

Some fields in PyCodeObject are lazily initialized. Use atomics and
critical sections to make their initializations and accesses thread-safe.
(cherry picked from commit 3926842)

Co-authored-by: Sam Gross colesbury@gmail.com

…pythonGH-127043)

Some fields in PyCodeObject are lazily initialized. Use atomics and
critical sections to make their initializations and accesses thread-safe.
(cherry picked from commit 3926842)

Co-authored-by: Sam Gross <colesbury@gmail.com>
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

X Tutup