[Tarantool-patches] [PATCH luajit 0/2] Fix corner cases of for loop recording
Sergey Kaplun
skaplun at tarantool.org
Thu Mar 12 18:55:55 MSK 2026
The first patch prevents recording of useless traces with always-fail
guards for NaN control vars or -0 step values. The second patch is the
follow-up to fix DUALNUM mode.
Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1432-1433-bad-for-loops
Related issues:
* https://github.com/LuaJIT/LuaJIT/issues/1432
* https://github.com/LuaJIT/LuaJIT/issues/1433
* https://github.com/LuaJIT/LuaJIT/issues/1438
* https://github.com/tarantool/tarantool/issues/12134
Mike Pall (2):
Prevent recording of loops with -0 step or NaN values.
DUALNUM: Fix recording of loops broken by previous change.
src/lj_record.c | 6 ++
.../lj-1432-minus-zero-step.test.lua | 57 +++++++++++++
.../lj-1433-nan-for-control-var.test.lua | 79 +++++++++++++++++++
.../lj-1438-jit-for-canary.test.lua | 22 ++++++
4 files changed, 164 insertions(+)
create mode 100644 test/tarantool-tests/lj-1432-minus-zero-step.test.lua
create mode 100644 test/tarantool-tests/lj-1433-nan-for-control-var.test.lua
create mode 100644 test/tarantool-tests/lj-1438-jit-for-canary.test.lua
--
2.53.0
More information about the Tarantool-patches
mailing list