]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Only replay sunk stores up to the snapshot reference.
authorMike Pall <mike>
Sun, 29 Jul 2012 19:37:45 +0000 (21:37 +0200)
committerMike Pall <mike>
Sun, 29 Jul 2012 19:37:45 +0000 (21:37 +0200)
src/lj_snap.c

index 0cf12243bb9739121e32c48c81d5ca9f240c6074..dd123692d3ab71eac898aa3a409b2cbfc23f363e 100644 (file)
@@ -464,8 +464,7 @@ void lj_snap_replay(jit_State *J, GCtrace *T)
       J->baseslot = s+1;
   }
   if (pass23) {
-    IRIns *irlast = &T->ir[(snap+1)->ref];
-    lua_assert(J->exitno+1 < T->nsnap);
+    IRIns *irlast = &T->ir[snap->ref];
     pass23 = 0;
     /* Emit dependent PVALs. */
     for (n = 0; n < nent; n++) {