summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r--src/lj_dispatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c
index 7b3ff80b..83bb4fd8 100644
--- a/src/lj_dispatch.c
+++ b/src/lj_dispatch.c
@@ -414,7 +414,8 @@ ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns *pc)
414#if LJ_HASJIT 414#if LJ_HASJIT
415 J->L = L; 415 J->L = L;
416 if ((uintptr_t)pc & 1) { /* Marker for hot call. */ 416 if ((uintptr_t)pc & 1) { /* Marker for hot call. */
417 lj_trace_hot(J, (const BCIns *)((uintptr_t)pc & ~(uintptr_t)1)); 417 pc = (const BCIns *)((uintptr_t)pc & ~(uintptr_t)1);
418 lj_trace_hot(J, pc);
418 goto out; 419 goto out;
419 } else if (J->state != LJ_TRACE_IDLE && 420 } else if (J->state != LJ_TRACE_IDLE &&
420 !(g->hookmask & (HOOK_GC|HOOK_VMEVENT))) { 421 !(g->hookmask & (HOOK_GC|HOOK_VMEVENT))) {