From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Bronnikov <sergeyb@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit 1/1] x86/x64: Change ipairs_aux to match JIT backend behavior.
Date: Fri, 5 Jun 2026 18:47:15 +0300 [thread overview]
Message-ID: <aiLvg9qAlAHUAgee@root> (raw)
In-Reply-To: <580f113a-a176-4b57-a81a-4bcf105f6876@tarantool.org>
Hi, Sergey!
Thanks for the review!
Fixed your comment and force-pushed the branch.
On 05.06.26, Sergey Bronnikov wrote:
> Hi, Sergey,
>
> thanks for the patch! LGTM with a minor comment(s).
>
> Sergey
>
> On 6/5/26 15:49, Sergey Kaplun wrote:
> > From: Mike Pall <mike>
> >
> > Thanks to Sergey Kaplun.
> >
> > (cherry picked from commit 64b1f10835acc18bf8923adf248dce4894867882)
> >
> > In the single-number VM, `ipairs_aux()` first adds the 1 to the given
> > number and only after casts it to an integer. This leads to results
> > different from Vanilla Lua 5.1 and inconsistent with JIT engine
>
> s/Vanilla/PUC Rio/
>
> feel free to ignore
Rephrasing as you suggested. The new commit message is the following:
| x86/x64: Change ipairs_aux to match JIT backend behavior.
|
| Thanks to Sergey Kaplun.
|
| (cherry picked from commit 64b1f10835acc18bf8923adf248dce4894867882)
|
| In the single-number VM, `ipairs_aux()` first adds the 1 to the given
| number and only after casts it to an integer. This leads to results
| different from PUC Rio Lua 5.1 and inconsistent with JIT engine
| recording.
|
| This patch fixes it by casting the value to an integer before addition.
|
| Sergey Kaplun:
| * added the description and the test for the problem
|
| Part of tarantool/tarantool#12480
>
> > recording.
> >
> > This patch fixes it by casting the value to an integer before addition.
> >
> > Sergey Kaplun:
> > * added the description and the test for the problem
> >
> > Part of tarantool/tarantool#12480
> > ---
> >
> > Branch:https://github.com/tarantool/luajit/tree/skaplun/lj-1463-ipairs-aux-consistency
> > Related issues:
> > *https://github.com/LuaJIT/LuaJIT/issues/1463
> > *https://github.com/tarantool/tarantool/issues/12480
> >
<snipped>
--
Best regards,
Sergey Kaplun
prev parent reply other threads:[~2026-06-05 15:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 12:49 Sergey Kaplun via Tarantool-patches
2026-06-05 15:14 ` Sergey Bronnikov via Tarantool-patches
2026-06-05 15:47 ` Sergey Kaplun via Tarantool-patches [this message]
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=aiLvg9qAlAHUAgee@root \
--to=tarantool-patches@dev.tarantool.org \
--cc=sergeyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 1/1] x86/x64: Change ipairs_aux to match JIT backend behavior.' \
/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