Skip to content

GH-94329: Don't raise on excessive stack consumption #94421

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 4 commits into from
Jun 30, 2022

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Jun 29, 2022

We want the compiler to produce code that doesn't use excessive amounts of stack, but we shouldn't limit what we can compile.

This PR allows code like x0, x1, ..., x4000 = t to compile and run correctly.

For 3.12 we want to compile the above code in a way that doesn't use too much stack, but for now let's just accept that we need a lot of stack.

@markshannon markshannon added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Jun 29, 2022
@miss-islington
Copy link
Contributor

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Sorry, @markshannon, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b152bf448b321e3a4c0a7280e0b608840f5ac661 3.10

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 30, 2022
@bedevere-bot
Copy link

GH-94446 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jun 30, 2022
@markshannon markshannon removed the needs backport to 3.10 only security fixes label Jun 30, 2022
markshannon added a commit to faster-cpython/cpython that referenced this pull request Jun 30, 2022
markshannon pushed a commit that referenced this pull request Jun 30, 2022
gvanrossum pushed a commit to gvanrossum/cpython that referenced this pull request Jun 30, 2022
@markshannon markshannon deleted the no-stack-size-assert branch September 26, 2023 12:49
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