-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Changes from all commits
2e43f75
7cff2b7
d7bbf67
83094c1
c7125c9
File filter
Filter by extension
Conversations
Jump to
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
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? 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.
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_TIER2
dependency elsewhere is to put this call itself inside#ifdef _Py_TIER2
. Then you don't need the dummy version you added to optimizer.c.