Tarantool development patches archive
 help / color / mirror / Atom feed
From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@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: Wed, 27 Sep 2023 12:33:50 +0000	[thread overview]
Message-ID: <ZRQhLjSoOdd1Uad3@tarantool.org> (raw)
In-Reply-To: <20230829123641.3303-1-skaplun@tarantool.org>

Sergey,

I've checked the patchset into all long-term branches in
tarantool/luajit and bumped a new version in master, release/2.11 and
release/2.10.

On 29.08.23, Sergey Kaplun via Tarantool-patches wrote:
> From: Mike Pall <mike>
> 
> Reported by Sergey Kaplun.
> 
> (cherry-picked from commit 0ef51b495f9497aac77b41eb3d837c9c38b9424b)
> 
> Table `NEWREF` storage for non-constant keys also emits `FREF` IR with
> `IRFL_TAB_NOMM` to invalidate the metamethod cache. When table creation
> and `NEWREF` are sinked, the corresponding `FSTORE` is sinked too and
> should be restored on trace exit. However, `snap_unsink()` doesn't
> expect anything except `IRFL_TAB_META` as the second operand of `FREF`,
> so the corresponding assertion fails.
> 
> This patch adds a switch-case statement to handle the `IRFL_TAB_NOMM`
> case. Since `FREF` with `IRFL_TAB_NOMM` always follows some hash store,
> we can avoid a duplication of the cache invalidation, so this case just
> does nothing.
> 
> Sergey Kaplun:
> * added the description and the test for the problem
> 
> Part of tarantool/tarantool#8825
> ---
> Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1052-unsink-with-irfl-tab-nomm
> Tarantool PR: https://github.com/tarantool/tarantool/pull/9055
> Related issues:
> * https://github.com/LuaJIT/LuaJIT/issues/1052
> * https://github.com/tarantool/tarantool/issues/8825
> 
>  src/lj_snap.c                                 | 18 +++++++---
>  ...lj-1052-unsink-with-irfl-tab-nomm.test.lua | 36 +++++++++++++++++++
>  2 files changed, 49 insertions(+), 5 deletions(-)
>  create mode 100644 test/tarantool-tests/lj-1052-unsink-with-irfl-tab-nomm.test.lua
> 

<snipped>

> -- 
> 2.42.0
> 

-- 
Best regards,
IM

      parent reply	other threads:[~2023-09-27 12:56 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
2023-09-18  8:41     ` Sergey Bronnikov via Tarantool-patches
2023-09-27 12:33 ` Igor Munkin 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=ZRQhLjSoOdd1Uad3@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=imun@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