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] Handle table unsinking in the presence of IRFL_TAB_NOMM.
Date: Mon, 18 Sep 2023 10:56:52 +0300	[thread overview]
Message-ID: <ZQgCxCj_rWRexuQ_@root> (raw)
In-Reply-To: <9e40b101-6a55-4961-0eda-7c8a955deb13@tarantool.org>

Hi, Sergey!
Thanks for the review!
Fixed your comment below.

On 16.09.23, Sergey Bronnikov wrote:
> Hi, Sergey
> 
> 
> Thanks for the patch! LGTM
> 
> See a minor comment below.

<snipped>

> > +jit.opt.start('hotloop=1')
> > +
> > +local counter = 0
> > +local slot = 'slot'
> > +while true do
> 
> You are using endless loop here, but loop is limited by 3 iterations 
> (break after counter > 2).
> 
> Why "while true do end" is used here? Should we left a comment here?
> 

Added the following comment, as you suggested. Branch is force-pushed.

===================================================================
diff --git a/test/tarantool-tests/lj-1052-unsink-with-irfl-tab-nomm.test.lua b/test/tarantool-tests/lj-1052-unsink-with-irfl-tab-nomm.test.lua
index aaf5349f..eaf89501 100644
--- a/test/tarantool-tests/lj-1052-unsink-with-irfl-tab-nomm.test.lua
+++ b/test/tarantool-tests/lj-1052-unsink-with-irfl-tab-nomm.test.lua
@@ -16,6 +16,9 @@ jit.opt.start('hotloop=1')
 
 local counter = 0
 local slot = 'slot'
+-- XXX: The loop is limited to 3 iterations to compile a trace and
+-- start to execute it. Use the `while true do` loop format to see
+-- the side effects on the restoration from the snapshot.
 while true do
   counter = counter + 1
   -- Use a non-constant slot to emit `FREF` with `IRFL_TAB_NOMM`.
===================================================================

<snipped>

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2023-09-18  8:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29 12:36 Sergey Kaplun via Tarantool-patches
2023-08-30 11:22 ` Maxim Kokryashkin via Tarantool-patches
2023-09-16 17:31 ` Sergey Bronnikov via Tarantool-patches
2023-09-18  7:56   ` Sergey Kaplun via Tarantool-patches [this message]
2023-09-18  8:41     ` 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=ZQgCxCj_rWRexuQ_@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] Handle table unsinking in the presence of IRFL_TAB_NOMM.' \
    /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