Browse Source

Fix final snapshot for trace stitching.

Mike Pall 12 years ago
parent
commit
dce3639c1d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lj_ffrecord.c

+ 2 - 1
src/lj_ffrecord.c

@@ -125,7 +125,8 @@ static void recff_stitch(jit_State *J)
 #endif
 #endif
   J->base[0] = trcont | TREF_CONT;
   J->base[0] = trcont | TREF_CONT;
   J->base[-1] = LJ_DUALNUM ? lj_ir_kint(J,traceno) : lj_ir_knum_u64(J,traceno);
   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++;
   J->framedepth++;
 
 
   lj_record_stop(J, LJ_TRLINK_STITCH, 0);
   lj_record_stop(J, LJ_TRLINK_STITCH, 0);