]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Prevent adding side traces for stack checks.
authorMike Pall <mike>
Tue, 22 Apr 2014 07:57:39 +0000 (09:57 +0200)
committerMike Pall <mike>
Tue, 22 Apr 2014 07:57:39 +0000 (09:57 +0200)
src/lj_trace.c

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