]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix final snapshot for trace stitching.
authorMike Pall <mike>
Sat, 28 Dec 2013 11:34:58 +0000 (12:34 +0100)
committerMike Pall <mike>
Sat, 28 Dec 2013 11:34:58 +0000 (12:34 +0100)
src/lj_ffrecord.c

index 6a156c7cbed12162ed7652d9ba55b1aa2f3a1566..cbdfa55c7577f62801722ed3d13b0987936bfe68 100644 (file)
@@ -125,7 +125,8 @@ static void recff_stitch(jit_State *J)
 #endif
   J->base[0] = trcont | TREF_CONT;
   J->base[-1] = LJ_DUALNUM ? lj_ir_kint(J,traceno) : lj_ir_knum_u64(J,traceno);
-  J->maxslot += 2;
+  J->base += 2;
+  J->baseslot += 2;
   J->framedepth++;
 
   lj_record_stop(J, LJ_TRLINK_STITCH, 0);