From 75abb0d934fef3e3d5aab46e60e34059ac8a1c08 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 25 May 2026 01:23:26 +0200 Subject: Avoid race condition with profiler thread during dispatch table update. Reported by artemking4. #1460 --- src/lj_dispatch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lj_dispatch.h') diff --git a/src/lj_dispatch.h b/src/lj_dispatch.h index 8492f7930..9baf762b2 100644 --- a/src/lj_dispatch.h +++ b/src/lj_dispatch.h @@ -132,7 +132,7 @@ LJ_FUNC void lj_dispatch_init(GG_State *GG); #if LJ_HASJIT LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); #endif -LJ_FUNC void lj_dispatch_update(global_State *g); +LJ_FUNC void LJ_FASTCALL lj_dispatch_update(global_State *g, int nolock); /* Instruction dispatch callback for hooks or when recording. */ LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); -- cgit v1.2.3-55-g6feb