Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-45256: Remove the usage of the C stack in Python to Python calls#28488
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
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
17 commits Select commit Hold shift + click to select a range
8a88fd3 Remove the usage of the cstack in Python to Python calls
pablogsal 799e366 Fix gdb
pablogsal 306e29f Move depth to frame structure for easier retrieval in debugging tools
pablogsal fc36be1 Refactor and simplifications
pablogsal e1091e0 Fix existing bug in the PREDICT() macro for the codepath without comp…
pablogsal d7a99c1 Apply suggestions from code review
pablogsal 0721cea Tracing of Python functions is handled at entry not call.
markshannon a2c0994 Inline creation of coroutines.
markshannon 832bccf Merge remote-tracking branch 'upstream/main' into simple_cframe
pablogsal 9a63ee1 Reorder flow in CALL_FUNCTION to make it a bit clearer.
markshannon 919b741 Merge pull request #16 from markshannon/simple_cframe
pablogsal 9210541 Update Python/ceval.c
pablogsal 9ce9e63 Fix reference counting when creating a new interpreter frame fails.
markshannon 9a0ceab Remove _PyEval_FrameFromPyFunctionAndArgs forwarding function.
markshannon 65219b2 Merge pull request #17 from markshannon/simple_cframe
pablogsal 1de88f6 Fix reference leaks (needs cleanup)
pablogsal f313e8c Merge branch 'main' into simple_cframe
pablogsal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -31,6 +31,7 @@ typedef struct _interpreter_frame{ | ||
| int f_lasti; /* Last instruction if called */ | ||
| int stacktop; /* Offset of TOS from localsplus */ | ||
| PyFrameState f_state; /* What state the frame is in */ | ||
| int depth; /* Depth of the frame in a ceval loop */ | ||
pablogsal marked this conversation as resolved. Outdated Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
| PyObject *localsplus[1]; | ||
| } InterpreterFrame; | ||
| @@ -85,6 +86,7 @@ _PyFrame_InitializeSpecials( | ||
| frame->generator = NULL; | ||
| frame->f_lasti = -1; | ||
| frame->f_state = FRAME_CREATED; | ||
| frame->depth = 0; | ||
| } | ||
| /* Gets the pointer to the locals array | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.