From e1905f498a8436434b0c1fba2f68d34376be4cbd Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 15 Feb 2010 18:04:06 +0100 Subject: Use a different marker for hot calls. --- src/lj_dispatch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lj_dispatch.c') diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c index f1579c8d..29b06438 100644 --- a/src/lj_dispatch.c +++ b/src/lj_dispatch.c @@ -409,8 +409,9 @@ ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns *pc) #endif call_init(L, fn); #if LJ_HASJIT - if (J->L) { /* Marker for hot call. */ - lj_trace_hot(J, pc); + if ((uintptr_t)pc & 1) { /* Marker for hot call. */ + J->L = L; + lj_trace_hot(J, (const BCIns *)((uintptr_t)pc & ~(uintptr_t)1)); goto out; } #endif -- cgit v1.2.3-55-g6feb