Prevent adding side traces for stack checks.

This commit is contained in:
Mike Pall 2014-04-22 09:57:39 +02:00
parent f3374b5266
commit 18309b0a25

View File

@ -607,6 +607,7 @@ static TValue *trace_state(lua_State *L, lua_CFunction dummy, void *ud)
} }
lj_opt_split(J); lj_opt_split(J);
lj_opt_sink(J); lj_opt_sink(J);
if (!J->loopref) J->cur.snap[J->cur.nsnap-1].count = SNAPCOUNT_DONE;
J->state = LJ_TRACE_ASM; J->state = LJ_TRACE_ASM;
break; break;