aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_trace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lj_trace.c b/src/lj_trace.c
index 654d157a..1ee00fd5 100644
--- a/src/lj_trace.c
+++ b/src/lj_trace.c
@@ -452,7 +452,11 @@ static void trace_stop(jit_State *J)
452 lua_assert(J->parent != 0 && J->cur.root != 0); 452 lua_assert(J->parent != 0 && J->cur.root != 0);
453 lj_asm_patchexit(J, traceref(J, J->parent), J->exitno, J->cur.mcode); 453 lj_asm_patchexit(J, traceref(J, J->parent), J->exitno, J->cur.mcode);
454 /* Avoid compiling a side trace twice (stack resizing uses parent exit). */ 454 /* Avoid compiling a side trace twice (stack resizing uses parent exit). */
455 traceref(J, J->parent)->snap[J->exitno].count = SNAPCOUNT_DONE; 455 {
456 SnapShot *snap = &traceref(J, J->parent)->snap[J->exitno];
457 snap->count = SNAPCOUNT_DONE;
458 if (J->cur.topslot > snap->topslot) snap->topslot = J->cur.topslot;
459 }
456 /* Add to side trace chain in root trace. */ 460 /* Add to side trace chain in root trace. */
457 { 461 {
458 GCtrace *root = traceref(J, J->cur.root); 462 GCtrace *root = traceref(J, J->cur.root);