Skip to content

Commit f53cd9d

Browse files
committed
pythongh-92228: disable the compiler's 'small exit block inlining' optimization
1 parent 40d81fd commit f53cd9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/compile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8981,7 +8981,8 @@ jump_thread(struct instr *inst, struct instr *target, int opcode)
89818981
}
89828982

89838983
/* Maximum size of basic block that should be copied in optimizer */
8984-
#define MAX_COPY_SIZE 4
8984+
/* Set to 0 to disable to optimisation - see gh-92228 */
8985+
#define MAX_COPY_SIZE 0
89858986

89868987
/* Optimization */
89878988
static int

0 commit comments

Comments
 (0)