diff options
author | Mark Shannon <mark@hotpy.org> | 2024-04-19 08:26:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 08:26:42 (GMT) |
commit | 7e6fa5fceddc3f4721c036116c7a11533c8b23b3 (patch) | |
tree | 8684f0f2bc1f25c197cbb0c70249f9f04de65464 /Python/optimizer.c | |
parent | d3bd6b5f3f48731715e21fe132b8e65a4e5f6ce8 (diff) | |
download | cpython-7e6fa5fceddc3f4721c036116c7a11533c8b23b3.zip cpython-7e6fa5fceddc3f4721c036116c7a11533c8b23b3.tar.gz cpython-7e6fa5fceddc3f4721c036116c7a11533c8b23b3.tar.bz2 |
GH-116202: Incorporate invalidation check into _START_EXECUTOR. (GH-118044)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r-- | Python/optimizer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index 5c69d9d..bb537c9 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -1109,8 +1109,6 @@ make_executor_from_uops(_PyUOpInstruction *buffer, int length, const _PyBloomFil assert(next_exit == -1); assert(dest == executor->trace); assert(dest->opcode == _START_EXECUTOR); - dest->oparg = 0; - dest->target = 0; _Py_ExecutorInit(executor, dependencies); #ifdef Py_DEBUG char *python_lltrace = Py_GETENV("PYTHON_LLTRACE"); @@ -1314,7 +1312,7 @@ counter_optimize( } _Py_CODEUNIT *target = instr + 1 + _PyOpcode_Caches[JUMP_BACKWARD] - oparg; _PyUOpInstruction buffer[5] = { - { .opcode = _START_EXECUTOR }, + { .opcode = _START_EXECUTOR, .jump_target = 4, .format=UOP_FORMAT_JUMP }, { .opcode = _LOAD_CONST_INLINE_BORROW, .operand = (uintptr_t)self }, { .opcode = _INTERNAL_INCREMENT_OPT_COUNTER }, { .opcode = _EXIT_TRACE, .jump_target = 4, .format=UOP_FORMAT_JUMP }, |