GeezerVison is showing github.com — GH-108866: Guarantee forward progress in executors. by markshannon · Pull Request #113006 · python/cpython
Conversation
markshannon
commented
Dec 12, 2023
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Changes the return value of executor functions, so that the next instruction can be a branch target.
Starts the optimizer at the target of the jump when optimizing from back edges to guarantee forward progress.
This simplifies ENTER_EXECUTOR a bit, as we can now rely on the executor to make forward progress.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hm, I'm a bit confused. Does this mean that an executor can never stop executing in a frame other than the one it started in? That seems like a big step backward if so, since it means that we can't have specialized instructions in inlined calls...
(If this isn't intended, maybe you're just missing a frame = tstate->current_frame and locals reload?)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
markshannon
commented
Dec 12, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Just missing frame = tstate->current_frame. And a test for it. It is basically impossible to test for, as that path is only hit for custom optimizers.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
aisk
pushed a commit
to aisk/cpython
that referenced
this pull request
Feb 11, 2024
Reviewers
gvanrossum
Awaiting requested review from gvanrossum
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
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.
|