-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Add internal doc describing the stack protection mechanism #137663
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
Add internal doc describing the stack protection mechanism #137663
Conversation
Co-authored-by: Brett Cannon <brett@python.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editorial-only comments
Protection against pure Python stack recursion has existed since very early, but in 3.12 we added protection against stack overflow | ||
in C code. This was initially implemented using a counter and later improved in 3.14 to use the actual stack depth. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is versioned in the source tree, is it important to discuss legacy/3.12 behaviour here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not important, but a bit of background does no harm.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Thank you so much for writing this up, Mark! |
No description provided.