Handle initial snapshot for side traces in lj_snap.c only.

master
Mike Pall 2012-07-02 22:52:15 +02:00
parent f093a34a2f
commit afeb4e2c51
2 changed files with 1 additions and 1 deletions

View File

@ -2122,7 +2122,6 @@ void lj_record_setup(jit_State *J)
J->startpc = NULL; /* Prevent forming an extra loop. */
}
lj_snap_replay(J, T);
lj_snap_add(J);
sidecheck:
if (traceref(J, J->cur.root)->nchild >= J->param[JIT_P_maxside] ||
T->snap[J->exitno].count >= J->param[JIT_P_hotexit] +

View File

@ -413,6 +413,7 @@ void lj_snap_replay(jit_State *J, GCtrace *T)
}
J->base = J->slot + J->baseslot;
J->maxslot = snap->nslots - J->baseslot;
lj_snap_add(J);
}
/* -- Snapshot restore ---------------------------------------------------- */