Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
GH-115709: Invalidate executors when a local variable is changed via frame.f_locals#118639
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
2e43f757cff2b7d7bbf6783094c1c7125c9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2424,6 +2424,9 @@ dummy_func( | ||
| opcode = executor->vm_data.opcode; | ||
| oparg = (oparg & ~255) | executor->vm_data.oparg; | ||
| next_instr = this_instr; | ||
| if (_PyOpcode_Caches[_PyOpcode_Deopt[opcode]]){ | ||
| PAUSE_ADAPTIVE_COUNTER(this_instr[1].counter); | ||
| } | ||
Comment on lines +2427 to +2429 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does it connect to the purpose of the PR? Or is it just a drive-by bugfix? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's unconnected. | ||
| DISPATCH_GOTO(); | ||
| } | ||
| tstate->previous_executor = Py_None; | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
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.
The way I solved the
_Py_TIER2dependency elsewhere is to put this call itself inside#ifdef _Py_TIER2. Then you don't need the dummy version you added to optimizer.c.