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/lib_jit.c | |
| 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/lib_jit.c')
| -rw-r--r-- | src/lib_jit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c index a7c553ab4..af3e0a6ff 100644 --- a/src/lib_jit.c +++ b/src/lib_jit.c | |||
| @@ -726,7 +726,7 @@ static void jit_init(lua_State *L) | |||
| 726 | #if LJ_TARGET_UNALIGNED | 726 | #if LJ_TARGET_UNALIGNED |
| 727 | G(L)->tmptv.u64 = U64x(0000504d,4d500000); | 727 | G(L)->tmptv.u64 = U64x(0000504d,4d500000); |
| 728 | #endif | 728 | #endif |
| 729 | lj_dispatch_update(G(L)); | 729 | lj_dispatch_update(G(L), 0); |
| 730 | #if LJ_TARGET_UNALIGNED | 730 | #if LJ_TARGET_UNALIGNED |
| 731 | /* If you get a crash below then your toolchain indicates unaligned | 731 | /* If you get a crash below then your toolchain indicates unaligned |
| 732 | ** accesses are OK, but your kernel disagrees. I.e. fix your toolchain. | 732 | ** accesses are OK, but your kernel disagrees. I.e. fix your toolchain. |
