浏览代码

Fix recording of JLOOP with higher maxslot.

Mike Pall 14 年之前
父节点
当前提交
d85b7e636e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_record.c

+ 1 - 1
src/lj_record.c

@@ -483,7 +483,7 @@ static LoopEvent rec_iterl(jit_State *J, const BCIns iterins)
 /* Record LOOP/JLOOP. Now, that was easy. */
 static LoopEvent rec_loop(jit_State *J, BCReg ra)
 {
-  J->maxslot = ra;
+  if (ra < J->maxslot) J->maxslot = ra;
   J->pc++;
   return LOOPEV_ENTER;
 }