Repository navigation
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 1 commit
2e43f75
7cff2b7
d7bbf67
83094c1
c7125c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1723,6 +1723,7 @@ _Py_Executors_InvalidateAll(PyInterpreterState *interp, int is_invalidation) | |
| } | ||
|
|
||
| #else | ||
|
|
||
| void | ||
| _Py_Executors_InvalidateDependency(PyInterpreterState *interp, void *obj, int is_invalidation) | ||
|
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. I'm not super keen on having a dummy version here -- and if we do this we should probably make a few more dummy versions and remove the occasional
Member
Author
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. Would you prefer this in optimizer.h #else
#define _Py_Executors_InvalidateDependency(A, B, C) ((void)0)
#endif _Py_TIER2and leave optimizer.c alone?
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. That's better. Though if this is what Brandt asks about maybe we should split it and put that bugfix in beta1 even if the f_locals bugfix goes to beta2. |
||
| { | ||
|
|
||
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.