Skip to content

Commit f087211

Browse files
committed
Allow executors with oparg >= 256
1 parent 9b20f9f commit f087211

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,8 +2311,7 @@ dummy_func(
23112311
uint16_t ucounter = this_instr[1].cache + (1 << 15);
23122312
uint16_t threshold = tstate->interp->optimizer_backedge_threshold + (1 << 15);
23132313
// Double-check that the opcode isn't instrumented or something:
2314-
// Also bail if extended oparg (>= 256)
2315-
if (ucounter > threshold && this_instr->op.code == JUMP_BACKWARD && oparg < 256) {
2314+
if (ucounter > threshold && this_instr->op.code == JUMP_BACKWARD) {
23162315
OPT_STAT_INC(attempts);
23172316
int optimized = _PyOptimizer_BackEdge(frame, this_instr, next_instr, stack_pointer);
23182317
ERROR_IF(optimized < 0, error);

Python/generated_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)