Only replay sunk stores up to the snapshot reference.

This commit is contained in:
Mike Pall 2012-07-29 21:37:45 +02:00
parent 85f29ffd40
commit 23abbd9ef3

View File

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