From: Mike Pall Date: Sun, 10 Apr 2011 16:00:08 +0000 (+0200) Subject: Fix recording of JLOOP with higher maxslot. X-Git-Tag: v2.0.0-beta7~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85b7e636e076f10ce7a4ad9a7d2cf00d760956e;p=thirdparty%2FLuaJIT.git Fix recording of JLOOP with higher maxslot. --- diff --git a/src/lj_record.c b/src/lj_record.c index 15152b96..c89c51be 100644 --- a/src/lj_record.c +++ b/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; }