diff options
| author | Mike Pall <mike> | 2026-05-25 01:23:26 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2026-05-25 01:23:26 +0200 |
| commit | 75abb0d934fef3e3d5aab46e60e34059ac8a1c08 (patch) | |
| tree | 136333fa8c3628e7e99e3b58d23efd0263bd9b99 /src/lj_dispatch.h | |
| parent | 64b1f10835acc18bf8923adf248dce4894867882 (diff) | |
| download | luajit-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.h | 2 |
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 |
| 133 | LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); | 133 | LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); |
| 134 | #endif | 134 | #endif |
| 135 | LJ_FUNC void lj_dispatch_update(global_State *g); | 135 | LJ_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. */ |
| 138 | LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); | 138 | LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); |
