mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Add extra check to suppress hotcall event during recording.
This commit is contained in:
parent
305ecbbb84
commit
c1c9abeab7
@ -551,8 +551,9 @@ static void trace_new(jit_State *J)
|
|||||||
void LJ_FASTCALL lj_trace_hot(jit_State *J, const BCIns *pc)
|
void LJ_FASTCALL lj_trace_hot(jit_State *J, const BCIns *pc)
|
||||||
{
|
{
|
||||||
hotcount_set(J2GG(J), pc, J->param[JIT_P_hotloop]+1); /* Reset hotcount. */
|
hotcount_set(J2GG(J), pc, J->param[JIT_P_hotloop]+1); /* Reset hotcount. */
|
||||||
/* Only start a new trace if not inside __gc call or vmevent. */
|
/* Only start a new trace if not recording or inside __gc call or vmevent. */
|
||||||
if (!(J2G(J)->hookmask & (HOOK_GC|HOOK_VMEVENT))) {
|
if (J->state == LJ_TRACE_IDLE &&
|
||||||
|
!(J2G(J)->hookmask & (HOOK_GC|HOOK_VMEVENT))) {
|
||||||
lua_State *L = J->L;
|
lua_State *L = J->L;
|
||||||
L->top = curr_topL(L); /* Only called from Lua and NRESULTS is not used. */
|
L->top = curr_topL(L); /* Only called from Lua and NRESULTS is not used. */
|
||||||
J->parent = 0; /* Root trace. */
|
J->parent = 0; /* Root trace. */
|
||||||
|
Loading…
Reference in New Issue
Block a user