Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Evgeniy Temirgaleev <e.temirgaleev@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit] FFI: Adjust J->maxslot after ffi.offsetof.
Date: Tue, 24 Nov 2026 20:31:12 +0300	[thread overview]
Message-ID: <awXJ4GxxBiT920f3@root> (raw)
In-Reply-To: <d8baa119-0740-4c72-be73-c08c96e9aeaa@tarantool.org>

Hi, Evgeniy!
Thanks for the review!

On 24.11.26, Evgeniy Temirgaleev wrote:
> Hi, Sergey! Thanks for the patch! LGTM with a minor comment.

See my reply below.

> 
> On 11/24/26 6:51 PM, Sergey Kaplun wrote:
> > From: Mike Pall <mike>
> > 
> > Reported by Elias Hogstvedt.
> > 
> > (cherry picked from commit 3000f7cdb1123f2a4d8b690d4292c541359c670c)
> > 

<snipped>

> > diff --git a/test/tarantool-tests/lj-1514-ffi-offsetof-maxslot.test.lua b/test/tarantool-tests/lj-1514-ffi-offsetof-maxslot.test.lua
> > new file mode 100644
> > index 00000000..dd6cc50f
> > --- /dev/null
> > +++ b/test/tarantool-tests/lj-1514-ffi-offsetof-maxslot.test.lua
> > @@ -0,0 +1,34 @@
> > +local tap = require('tap')
> > +
> > +-- The test file to demonstrate an incorrect JIT slots recording
> > +-- for the `ffi.offsetof()` fast function.
> > +-- See also: https://github.com/LuaJIT/LuaJIT/issues/1514.
> > +local test = tap.test('lj-1514-ffi-offsetof-maxslot'):skipcond({
> > +  ['Test requires JIT enabled'] = not jit.status(),
> > +})
> Nit, may we skip test if LUA_USE_ASERT build flag is off and the test 
> passed without a patch?

Generally it is possible but requires an additional ENV variable set.

OTOH, it is the common practice to run the test in the Release build
even if it is passed before the patch. Mostly it is done to avoid
regressions in the future. Since most LuaJIT tests run for 0 sec, I
suppose this is acceptable not to skip it and be more confident in our
testing for the Release build.

<snipped>

> 
> -- 
> --
> Best regards,
> Evgeniy Temirgaleev
> 

-- 
Best regards,
Sergey Kaplun

      reply	other threads:[~2026-11-24 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 15:51 Sergey Kaplun via Tarantool-patches
2026-11-24 16:39 ` Evgeniy Temirgaleev via Tarantool-patches
2026-11-24 17:31   ` 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=awXJ4GxxBiT920f3@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=e.temirgaleev@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] FFI: Adjust J->maxslot after ffi.offsetof.' \
    /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