[Tarantool-patches] [PATCH luajit 2/3] test: fix `fillmcode()` generator helper
Sergey Kaplun
skaplun at tarantool.org
Mon Sep 4 18:50:25 MSK 2023
This patch fixes the typo in the condition for code generation. Due to
the wrong comparison, the generation was stopped too early.
---
test/tarantool-tests/utils/jit/generators.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/tarantool-tests/utils/jit/generators.lua b/test/tarantool-tests/utils/jit/generators.lua
index 65abfdaa..0189cd2a 100644
--- a/test/tarantool-tests/utils/jit/generators.lua
+++ b/test/tarantool-tests/utils/jit/generators.lua
@@ -38,7 +38,7 @@ function M.fillmcode(trace_from, size)
-- Addresses of traces may increase or decrease depending on OS,
-- so use absolute diff.
- while math.abs(last_addr - addr_from) > required_diff do
+ while math.abs(last_addr - addr_from) < required_diff do
last_i = last_i + 1
-- This is quite a heavy workload (though it doesn't look like
-- one at first). Each load from a table is type guarded. Each
--
2.42.0
More information about the Tarantool-patches
mailing list