Skip to content

[3.13] GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546) #123759

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 2 commits into from
Sep 6, 2024

Conversation

savannahostrowski
Copy link
Member

@savannahostrowski savannahostrowski commented Sep 6, 2024

(cherry picked from commit 1fbc118)

Co-authored-by: Savannah Ostrowski [email protected]

Had some issues with cherry_picker but I think I did this correctly?

…ptimizer_Optimize errors (pythonGH-123546)

(cherry picked from commit 1fbc118)

Co-authored-by: Savannah Ostrowski <[email protected]>
@savannahostrowski savannahostrowski added 3.13 bugs and security fixes topic-JIT labels Sep 6, 2024
@bedevere-app bedevere-app bot added the type-bug An unexpected behavior, bug, or error label Sep 6, 2024
@picnixz picnixz changed the title [3.13] GH-123545: Remove duplicate Py_DECREF when handling _PyOptimiz… [3.13] GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546) Sep 6, 2024
@brandtbucher
Copy link
Member

@Yhg1s, this fixes a double-decref in an incredibly unlikely (so far only hypothetical) case where we run out of memory during JIT compilation. Your call if you want to merge before the RC or put it off.

@brandtbucher
Copy link
Member

Confirmed offline.

@brandtbucher brandtbucher merged commit eac2fda into python:3.13 Sep 6, 2024
62 checks passed
@savannahostrowski savannahostrowski deleted the backport-1fbc118-3.13 branch September 27, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes topic-JIT type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants