FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-124547: Clear instance dictionary if memory error occurs during object dealloc by markshannon · Pull Request #124627 · python/cpython · GitHub

Repository navigation

GH-124547: Clear instance dictionary if memory error occurs during object dealloc - #124627

Merged
markshannon merged 2 commits into
python:mainfrom
faster-cpython:fix-124547
Sep 27, 2024
Merged

markshannon merged 2 commits into
python:mainfrom
faster-cpython:fix-124547

Conversation

markshannon commented Sep 26, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

If a memory error occurs when copying values into the dict during object deallocation: clear the dict, so that the dict is at least a valid object.

markshannon requested a review from DinoV September 27, 2024 16:25
markshannon added the needs backport to 3.13 only security fixes label Sep 27, 2024

DinoV left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!

markshannon merged commit 0e21cc6 into python:main Sep 27, 2024

Copy link
Copy Markdown

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 27, 2024
…ing object dealloc (pythonGH-124627)

(cherry picked from commit 0e21cc6)

Co-authored-by: Mark Shannon <mark@hotpy.org>

bedevere-app Bot commented Sep 27, 2024

Copy link
Copy Markdown

GH-124714 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 27, 2024
Yhg1s pushed a commit that referenced this pull request Sep 27, 2024
…ring object dealloc (GH-124627) (#124714)

GH-124547: Clear instance dictionary if memory error occurs during object dealloc (GH-124627)
(cherry picked from commit 0e21cc6)

Co-authored-by: Mark Shannon <mark@hotpy.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL