mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
GH-116202: Incorporate invalidation check into _START_EXECUTOR. (GH-118044)
This commit is contained in:
parent
d3bd6b5f3f
commit
7e6fa5fced
5 changed files with 10 additions and 4 deletions
|
@ -497,6 +497,9 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
|
|||
for (int pc = 0; pc < buffer_size; pc++) {
|
||||
int opcode = buffer[pc].opcode;
|
||||
switch (opcode) {
|
||||
case _START_EXECUTOR:
|
||||
may_have_escaped = false;
|
||||
break;
|
||||
case _SET_IP:
|
||||
buffer[pc].opcode = _NOP;
|
||||
last_set_ip = pc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue