Skip to content

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

Merged
markshannon merged 4 commits into
python:mainfrom
faster-cpython:no-stack-size-assert
Jun 30, 2022
Merged

GH-94329: Don't raise on excessive stack consumption#94421
markshannon merged 4 commits into
python:mainfrom
faster-cpython:no-stack-size-assert

Conversation

@markshannon

@markshannon markshannon commented Jun 29, 2022

Copy link
Copy Markdown
Member

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
Comment thread Python/compile.c
@miss-islington

Copy link
Copy Markdown
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
Copy Markdown
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
…94421)

(cherry picked from commit b152bf4)

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

Copy link
Copy Markdown

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