Skip to content

gh-158918: Reduce C stack usage of _PyModule_IsPossiblyShadowing. - #158919

Merged
encukou merged 2 commits into
python:mainfrom
Yhg1s:pymodule_ispossiblyshadowing-stack
Oct 9, 2026
Merged

encukou merged 2 commits into
python:mainfrom
Yhg1s:pymodule_ispossiblyshadowing-stack

Conversation

@Yhg1s

@Yhg1s Yhg1s commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Reduce C stack usage of _PyModule_IsPossiblyShadowing, which could potentially cause stack overflows during module attribute access while deeply recursing in agressively optimized builds.

potentially cause stack overflows during module attribute access while
deeply recursing in agressively optimized builds.
@Yhg1s Yhg1s added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Oct 6, 2026
@Yhg1s Yhg1s changed the title GH-158918: Reduce C stack usage of _PyModule_IsPossiblyShadowing. gh-158918: Reduce C stack usage of _PyModule_IsPossiblyShadowing. Oct 6, 2026
@Yhg1s Yhg1s added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Oct 6, 2026

@encukou encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@encukou
encukou merged commit 53be7d4 into python:main Oct 9, 2026
59 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @Yhg1s for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

GH-159063 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Oct 9, 2026
@bedevere-app

bedevere-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

GH-159064 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 Oct 9, 2026
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