mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
gh-146058: Fix _GUARD_CODE_VERSION_* (GH-146060)
This commit is contained in:
parent
ff287a72de
commit
966fc81531
7 changed files with 1557 additions and 1154 deletions
|
|
@ -1775,19 +1775,6 @@ dummy_func(void) {
|
|||
// do not need an IP guard.
|
||||
}
|
||||
|
||||
op(_GUARD_CODE_VERSION, (version/2 -- )) {
|
||||
PyCodeObject *co = get_current_code_object(ctx);
|
||||
if (co->co_version == version) {
|
||||
_Py_BloomFilter_Add(dependencies, co);
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
op(_GUARD_IP_YIELD_VALUE, (ip/4 --)) {
|
||||
(void)ip;
|
||||
if (ctx->frame->caller) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue