| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + Fix an issue which caused incorrect inline caches to be read when running | ||
| 2 | + with :envvar:`PYTHONUOPS` or :option:`-X uops <-X>` enabled. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -579,7 +579,8 @@ translate_bytecode_to_trace( | |||
| 579 | 579 | for (int i = 0; i < nuops; i++) { | |
| 580 | 580 | oparg = orig_oparg; | |
| 581 | 581 | uint64_t operand = 0; | |
| 582 | - int offset = expansion->uops[i].offset; | ||
| 582 | + // Add one to account for the actual opcode/oparg pair: | ||
| 583 | + int offset = expansion->uops[i].offset + 1; | ||
| 583 | 584 | switch (expansion->uops[i].size) { | |
| 584 | 585 | case OPARG_FULL: | |
| 585 | 586 | if (extras && OPCODE_HAS_JUMP(opcode)) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments