mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-146018: Disable over-aggressive optimization for _GUARD_CODE_VERSION (GH-145923)
This commit is contained in:
parent
fd50b41aa9
commit
182aea2f57
2 changed files with 3 additions and 2 deletions
|
|
@ -1761,7 +1761,9 @@ dummy_func(void) {
|
|||
PyCodeObject *co = get_current_code_object(ctx);
|
||||
if (co->co_version == version) {
|
||||
_Py_BloomFilter_Add(dependencies, co);
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
// TODO gh-144651:
|
||||
// If we've previously guarded on this code version in a trace, we
|
||||
// can avoid guarding it again.
|
||||
}
|
||||
else {
|
||||
ctx->done = true;
|
||||
|
|
|
|||
1
Python/optimizer_cases.c.h
generated
1
Python/optimizer_cases.c.h
generated
|
|
@ -4290,7 +4290,6 @@
|
|||
PyCodeObject *co = get_current_code_object(ctx);
|
||||
if (co->co_version == version) {
|
||||
_Py_BloomFilter_Add(dependencies, co);
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
else {
|
||||
ctx->done = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue