Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Maxim Kokryashkin <m.kokryashkin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit] Fix maxslots when recording BC_TSETM.
Date: Mon, 28 Aug 2023 18:19:04 +0300	[thread overview]
Message-ID: <ZOy66P28a12Faofs@root> (raw)
In-Reply-To: <pmcm76ldqquf24b6d6vyhhdb6vh6dkmjt3sv35ewzqeczb62bt@prkq4r7g5f2g>

Hi, Maxim!
Thanks for the comments!
Fixed your comments inline.

On 28.08.23, Maxim Kokryashkin wrote:
> Hi, Sergey!
> Thanks for the fixes!
> LGTM, except for a few more comments below.
> On Mon, Aug 28, 2023 at 06:02:12PM +0300, Sergey Kaplun wrote:

<snipped>

> > > > +
> > > > +local TEST_VALUE = '5'
> > > > +local TEST_IDX = 5
> > > > +
> > > > +local function slot5()
> > > > +  return nil, nil, nil, nil, TEST_VALUE
> > > > +end
> > > Why the fifth slot? Drop a comment.
> > 
> > Fixed. See the iterative patch below.
> > 

<snipped>

> > 
> > ===================================================================
> > diff --git a/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua b/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua
> > index 7ae0a99d..74625a79 100644
> > --- a/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua
> > +++ b/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua
> > @@ -15,6 +15,8 @@ local jit_dump = require('jit.dump')
> >  local TEST_VALUE = '5'
> >  local TEST_IDX = 5
> >  
> > +-- XXX: Use big enough slot numbewr to be overwritten by VM event
> Typo: s/Use/Use a/
> Typo: s/numbewr/number/
> Typo: s/by VM/by the VM/
> > +-- handler function.
> Please also add that this is an empirical number.

Fixed, thanks.

===================================================================
diff --git a/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua b/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua
index 74625a79..0e82c0b9 100644
--- a/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua
+++ b/test/tarantool-tests/lj-1025-tsetm-maxslot.test.lua
@@ -15,8 +15,8 @@ local jit_dump = require('jit.dump')
 local TEST_VALUE = '5'
 local TEST_IDX = 5
 
--- XXX: Use big enough slot numbewr to be overwritten by VM event
--- handler function.
+-- XXX: Use a big enough slot number to be overwritten by the VM
+-- event handler function. This value is empirical.
 local function slot5()
   return nil, nil, nil, nil, TEST_VALUE
 end
===================================================================

<snipped>

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2023-08-28 15:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25 15:00 Sergey Kaplun via Tarantool-patches
2023-08-28 12:58 ` Sergey Bronnikov via Tarantool-patches
2023-08-28 14:04   ` Sergey Kaplun via Tarantool-patches
2023-08-28 15:00 ` Maxim Kokryashkin via Tarantool-patches
2023-08-28 15:02   ` Sergey Kaplun via Tarantool-patches
2023-08-28 15:16     ` Maxim Kokryashkin via Tarantool-patches
2023-08-28 15:19       ` Sergey Kaplun via Tarantool-patches [this message]
2023-09-01 15:45 ` 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=ZOy66P28a12Faofs@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=m.kokryashkin@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] Fix maxslots when recording BC_TSETM.' \
    /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