mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Preserve snapshot #0 PC for all traces (potential gcstep exit).
This commit is contained in:
parent
d3699997fa
commit
a6d636c508
@ -147,8 +147,7 @@ void lj_snap_add(jit_State *J)
|
|||||||
/* Merge if no ins. inbetween or if requested and no guard inbetween. */
|
/* Merge if no ins. inbetween or if requested and no guard inbetween. */
|
||||||
if (J->mergesnap ? !irt_isguard(J->guardemit) :
|
if (J->mergesnap ? !irt_isguard(J->guardemit) :
|
||||||
(nsnap > 0 && J->cur.snap[nsnap-1].ref == J->cur.nins)) {
|
(nsnap > 0 && J->cur.snap[nsnap-1].ref == J->cur.nins)) {
|
||||||
if (nsnap == 1 && J->parent == 0) {
|
if (nsnap == 1) { /* But preserve snap #0 PC. */
|
||||||
/* But preserve snap #0 PC for root traces. */
|
|
||||||
emitir_raw(IRT(IR_NOP, IRT_NIL), 0, 0);
|
emitir_raw(IRT(IR_NOP, IRT_NIL), 0, 0);
|
||||||
goto nomerge;
|
goto nomerge;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user