summaryrefslogtreecommitdiff
path: root/src/lj_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_trace.c')
-rw-r--r--src/lj_trace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_trace.c b/src/lj_trace.c
index ab75c9d2..ecfbfed6 100644
--- a/src/lj_trace.c
+++ b/src/lj_trace.c
@@ -278,7 +278,9 @@ int lj_trace_flushall(lua_State *L)
278 memset(J->penalty, 0, sizeof(J->penalty)); 278 memset(J->penalty, 0, sizeof(J->penalty));
279 /* Free the whole machine code and invalidate all exit stub groups. */ 279 /* Free the whole machine code and invalidate all exit stub groups. */
280 lj_mcode_free(J); 280 lj_mcode_free(J);
281#ifdef EXITSTUBS_PER_GROUP
281 memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup)); 282 memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup));
283#endif
282 lj_vmevent_send(L, TRACE, 284 lj_vmevent_send(L, TRACE,
283 setstrV(L, L->top++, lj_str_newlit(L, "flush")); 285 setstrV(L, L->top++, lj_str_newlit(L, "flush"));
284 ); 286 );
@@ -700,7 +702,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
700 702
701 lj_vmevent_send(L, TEXIT, 703 lj_vmevent_send(L, TEXIT,
702 ExitState *ex = (ExitState *)exptr; 704 ExitState *ex = (ExitState *)exptr;
703 uint32_t i; 705 int32_t i;
704 lj_state_checkstack(L, 4+RID_NUM_GPR+RID_NUM_FPR+LUA_MINSTACK); 706 lj_state_checkstack(L, 4+RID_NUM_GPR+RID_NUM_FPR+LUA_MINSTACK);
705 setintV(L->top++, J->parent); 707 setintV(L->top++, J->parent);
706 setintV(L->top++, J->exitno); 708 setintV(L->top++, J->exitno);