mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 09:24:07 +00:00
Don't start a trace on side exit to non-Lua function.
This commit is contained in:
parent
5a5a340f6e
commit
a2abf2e098
@ -682,6 +682,7 @@ static void trace_hotside(jit_State *J, const BCIns *pc)
|
||||
{
|
||||
SnapShot *snap = &traceref(J, J->parent)->snap[J->exitno];
|
||||
if (!(J2G(J)->hookmask & (HOOK_GC|HOOK_VMEVENT)) &&
|
||||
isluafunc(curr_func(J->L)) &&
|
||||
snap->count != SNAPCOUNT_DONE &&
|
||||
++snap->count >= J->param[JIT_P_hotexit]) {
|
||||
lua_assert(J->state == LJ_TRACE_IDLE);
|
||||
|
Loading…
Reference in New Issue
Block a user