aboutsummaryrefslogtreecommitdiff
path: root/src/lj_dispatch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2026-05-25 01:23:26 +0200
committerMike Pall <mike>2026-05-25 01:23:26 +0200
commit75abb0d934fef3e3d5aab46e60e34059ac8a1c08 (patch)
tree136333fa8c3628e7e99e3b58d23efd0263bd9b99 /src/lj_dispatch.h
parent64b1f10835acc18bf8923adf248dce4894867882 (diff)
downloadluajit-75abb0d934fef3e3d5aab46e60e34059ac8a1c08.tar.gz
luajit-75abb0d934fef3e3d5aab46e60e34059ac8a1c08.tar.bz2
luajit-75abb0d934fef3e3d5aab46e60e34059ac8a1c08.zip
Avoid race condition with profiler thread during dispatch table update.
Reported by artemking4. #1460
Diffstat (limited to 'src/lj_dispatch.h')
-rw-r--r--src/lj_dispatch.h2
1 files changed, 1 insertions, 1 deletions
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);
132#if LJ_HASJIT 132#if LJ_HASJIT
133LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); 133LJ_FUNC void lj_dispatch_init_hotcount(global_State *g);
134#endif 134#endif
135LJ_FUNC void lj_dispatch_update(global_State *g); 135LJ_FUNC void LJ_FASTCALL lj_dispatch_update(global_State *g, int nolock);
136 136
137/* Instruction dispatch callback for hooks or when recording. */ 137/* Instruction dispatch callback for hooks or when recording. */
138LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); 138LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc);