Skip to content

Commit 8e6e14e

Browse files
committed
Fix infinite loop
1 parent e05054f commit 8e6e14e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rpython/jit/codewriter/genextension.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,16 +2171,14 @@ def _emit_int_ovf_fast(self, rop_name, py_op):
21712171
lines.append("i%d = _res" % result.index)
21722172

21732173
lines.append("self.handle_possible_overflow_error(%d, %d, _op)" % (target_pc, self.orig_pc))
2174-
lines.append("pc = self.pc")
2175-
lines.append("if pc == %s:" % (target_pc,))
2174+
lines.append("if self.metainterp.ovf_flag:")
21762175
specializer = self.work_list.specialize_pc(
21772176
self.constant_registers - {result}, target_pc)
21782177
lines.append(" pc = %s" % (specializer.spec_pc,))
21792178
lines.append("else:")
21802179
next_pc = self.work_list.pc_to_nextpc[self.orig_pc]
21812180
specializer = self.work_list.specialize_pc(
21822181
self.constant_registers - {result}, next_pc)
2183-
lines.append(" assert self.pc == %s" % (specializer.orig_pc,))
21842182
lines.append(" pc = %s" % (specializer.spec_pc,))
21852183
lines.append("continue")
21862184
return lines

0 commit comments

Comments
 (0)