From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Maxim Kokryashkin <m.kokryashkin@tarantool.org>, Sergey Bronnikov <sergeyb@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: [Tarantool-patches] [PATCH luajit 2/3] test: fix `fillmcode()` generator helper Date: Mon, 4 Sep 2023 18:50:25 +0300 [thread overview] Message-ID: <96e8565ee693bc1e10074c7298040ab316e213c3.1693840653.git.skaplun@tarantool.org> (raw) In-Reply-To: <cover.1693840653.git.skaplun@tarantool.org> 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
next prev parent reply other threads:[~2023-09-04 15:56 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-09-04 15:50 [Tarantool-patches] [PATCH luajit 0/3] Fix fix-mips64-spare-side-exit-patching Sergey Kaplun via Tarantool-patches 2023-09-04 15:50 ` [Tarantool-patches] [PATCH luajit 1/3] MIPS: Fix "bad FP FLOAD" assertion Sergey Kaplun via Tarantool-patches 2023-09-05 7:05 ` Maxim Kokryashkin via Tarantool-patches 2023-09-26 18:58 ` Igor Munkin via Tarantool-patches 2023-09-04 15:50 ` Sergey Kaplun via Tarantool-patches [this message] 2023-09-05 7:06 ` [Tarantool-patches] [PATCH luajit 2/3] test: fix `fillmcode()` generator helper Maxim Kokryashkin via Tarantool-patches 2023-09-26 18:58 ` Igor Munkin via Tarantool-patches 2023-09-04 15:50 ` [Tarantool-patches] [PATCH luajit 3/3] test: fix fix-mips64-spare-side-exit-patching Sergey Kaplun via Tarantool-patches 2023-09-05 8:56 ` Maxim Kokryashkin via Tarantool-patches 2023-09-05 11:16 ` Sergey Kaplun via Tarantool-patches 2023-09-26 18:59 ` Igor Munkin via Tarantool-patches 2023-09-27 12:33 ` [Tarantool-patches] [PATCH luajit 0/3] Fix fix-mips64-spare-side-exit-patching Igor Munkin via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=96e8565ee693bc1e10074c7298040ab316e213c3.1693840653.git.skaplun@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=m.kokryashkin@tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit 2/3] test: fix `fillmcode()` generator helper' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox