Skip to content

gh-130327: Always traverse managed dictionaries, even when inline values are available#130469

Merged
colesbury merged 17 commits intopython:mainfrom
ZeroIntensity:gh-130327-managed-dict-inline
Mar 2, 2026
Merged

gh-130327: Always traverse managed dictionaries, even when inline values are available#130469
colesbury merged 17 commits intopython:mainfrom
ZeroIntensity:gh-130327-managed-dict-inline

Conversation

@ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Feb 22, 2025

@ZeroIntensity ZeroIntensity added 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section and removed 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section labels Feb 23, 2025
@ZeroIntensity

This comment was marked as resolved.

@bedevere-bot

This comment was marked as resolved.

@ZeroIntensity ZeroIntensity marked this pull request as draft February 23, 2025 14:05
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.14 bugs and security fixes label May 8, 2025
I turned this into a mess when trying to debug the other crash.
@colesbury
Copy link
Contributor

I'm taking a look at this now. I think there's a second bug involving dictionaries tp_clear and GC.

@colesbury
Copy link
Contributor

Oh, we already have an issue for the other bug: #130555

@ZeroIntensity
Copy link
Member Author

Feel free to open your own PR if that's easier.

@colesbury colesbury marked this pull request as ready for review March 2, 2026 18:45
Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

The PR was good as is, but we had to fix this other issue first:

I'm going to make a few minor edits and merge.

@colesbury colesbury merged commit 592e8f0 into python:main Mar 2, 2026
47 checks passed
@miss-islington-app
Copy link

Thanks @ZeroIntensity for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 2, 2026
…ne values are available (pythonGH-130469)

(cherry picked from commit 592e8f0)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@miss-islington-app
Copy link

Sorry, @ZeroIntensity and @colesbury, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 592e8f0865cfd5af65fbcdbd185c3dd576c838e7 3.13

@bedevere-app
Copy link

bedevere-app bot commented Mar 2, 2026

GH-145438 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Mar 2, 2026
colesbury pushed a commit to colesbury/cpython that referenced this pull request Mar 2, 2026
…en inline values are available (pythonGH-130469)

(cherry picked from commit 592e8f0)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 2, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 2, 2026
@ZeroIntensity ZeroIntensity deleted the gh-130327-managed-dict-inline branch March 2, 2026 19:43
@ZeroIntensity
Copy link
Member Author

Thanks for handling this :)

colesbury pushed a commit that referenced this pull request Mar 2, 2026
…ine values are available (GH-130469) (#145438)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
colesbury added a commit that referenced this pull request Mar 2, 2026
…ine values are available (GH-130469) (#145440)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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.

4 participants