Tarantool development patches archive
 help / color / mirror / Atom feed
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] Fix handling of instable types in TNEW/TDUP load forwarding.
Date: Fri, 15 Sep 2023 16:20:20 +0300	[thread overview]
Message-ID: <ZQRaFNlVd_1kDX2x@root> (raw)
In-Reply-To: <fd971ff8-a478-854a-37f5-b71ae6aff733@tarantool.org>

Hi, Sergey!
Thanks for the review!
Fixed your comment, and force-pushed the branch.

On 15.09.23, Sergey Bronnikov wrote:
> Hi, Sergey
> 
> thanks for the patch! LGTM
> 
> And see my minor comments below.
> 
> 
> On 8/29/23 12:54, Sergey Kaplun wrote:
> 
> <snipped>
> 
> >   -- TDUP.
> > ---[[
> > --- FIXME: Disable test case for now. Enable, with another
> > --- backported commit with a fix for the aforementioned issue
> > --- (and after patch "Improve assertions.").
> > --- Test taken trace exits too.
> >   for _ = 1, 5 do
> >     local t = slot
> >     -- Now use constant key slot to get necessary branch.
> > @@ -48,6 +43,5 @@ for _ = 1, 5 do
> Nit: assert is triggered with 3 iterations too

Yes, but I also want to test the trace execution. So, left it as is.

> >     slot = _ % 2 ~= 0 and stored_tab or {true}
> Nit: I would left a comment with explanation why exactly this value is 
> assigned to slot.

Added the corresponding comment.

===================================================================
diff --git a/test/tarantool-tests/lj-994-instable-types-during-loop-unroll.test.lua b/test/tarantool-tests/lj-994-instable-types-during-loop-unroll.test.lua
index 6e2cf5ed..f240bdd2 100644
--- a/test/tarantool-tests/lj-994-instable-types-during-loop-unroll.test.lua
+++ b/test/tarantool-tests/lj-994-instable-types-during-loop-unroll.test.lua
@@ -40,6 +40,8 @@ for _ = 1, 5 do
   -- LJ_TRERR_GFAIL isn't triggered here.
   -- See `fwd_ahload()` in <src/lj_opt_mem.c> for details.
   result = t[1]
+  -- The constant table should contain the key with a different
+  -- type.
   slot = _ % 2 ~= 0 and stored_tab or {true}
 end
 test:is(result, true, 'TDUP load forwarding was successful')
===================================================================

> >   end
> >   test:is(result, true, 'TDUP load forwarding was successful')
> > -]]
> >   
> >   test:done(true)

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2023-09-15 13:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29  9:54 Sergey Kaplun via Tarantool-patches
2023-08-30 10:37 ` Maxim Kokryashkin via Tarantool-patches
2023-09-15  7:28 ` Sergey Bronnikov via Tarantool-patches
2023-09-15 13:20   ` Sergey Kaplun via Tarantool-patches [this message]
2023-09-16 17:35     ` Sergey Bronnikov via Tarantool-patches
2023-09-27 12:33 ` 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=ZQRaFNlVd_1kDX2x@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] Fix handling of instable types in TNEW/TDUP load forwarding.' \
    /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