8000 gh-117657: Make Py_TYPE and Py_SET_TYPE thread safe by Fidget-Spinner · Pull Request #120165 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117657: Make Py_TYPE and Py_SET_TYPE thread safe #120165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Include/internal/pycore_interp.h
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
Fidget-Spinner and picnixz authored Jun 9, 2024
commit 156908d731bba10c2364806108db4040777dd9da
2 changes: 1 addition & 1 deletion Include/internal/pycore_interp.h
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ PyAPI_FUNC(PyStatus) _PyInterpreterState_New(
/* saturating add */ \
int val = FT_ATOMIC_LOAD_UINT8_RELAXED(interp->rare_events.name); \
if (val < UINT8_MAX) { \
FT_ATOMIC_STORE_UINT8(interp->rare_events.name, val+1); \
FT_ATOMIC_STORE_UINT8(interp->rare_events.name, val + 1); \
} \
RARE_EVENT_STAT_INC(name); \
} while (0); \
Expand Down
0