mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Handle initial snapshot for side traces in lj_snap.c only.
This commit is contained in:
parent
f093a34a2f
commit
afeb4e2c51
@ -2122,7 +2122,6 @@ void lj_record_setup(jit_State *J)
|
|||||||
J->startpc = NULL; /* Prevent forming an extra loop. */
|
J->startpc = NULL; /* Prevent forming an extra loop. */
|
||||||
}
|
}
|
||||||
lj_snap_replay(J, T);
|
lj_snap_replay(J, T);
|
||||||
lj_snap_add(J);
|
|
||||||
sidecheck:
|
sidecheck:
|
||||||
if (traceref(J, J->cur.root)->nchild >= J->param[JIT_P_maxside] ||
|
if (traceref(J, J->cur.root)->nchild >= J->param[JIT_P_maxside] ||
|
||||||
T->snap[J->exitno].count >= J->param[JIT_P_hotexit] +
|
T->snap[J->exitno].count >= J->param[JIT_P_hotexit] +
|
||||||
|
@ -413,6 +413,7 @@ void lj_snap_replay(jit_State *J, GCtrace *T)
|
|||||||
}
|
}
|
||||||
J->base = J->slot + J->baseslot;
|
J->base = J->slot + J->baseslot;
|
||||||
J->maxslot = snap->nslots - J->baseslot;
|
J->maxslot = snap->nslots - J->baseslot;
|
||||||
|
lj_snap_add(J);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -- Snapshot restore ---------------------------------------------------- */
|
/* -- Snapshot restore ---------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user