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] Correctly close VM state after early OOM during open.
Date: Tue, 9 Sep 2025 12:44:05 +0300	[thread overview]
Message-ID: <aL_25Wbb7dfGWsXk@root> (raw)
In-Reply-To: <d06e2857-e55a-4e00-a5c0-6d8129e19421@tarantool.org>

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

On 09.09.25, Sergey Bronnikov wrote:
> Hi, Sergey,
> 
> thanks for the patch! LGTM with a minor comment.
> 
> Sergey
> 
> On 8/19/25 10:40, Sergey Kaplun wrote:

<snipped>

> > +	/*
> > +	 * Check that there is no crash and the limit is small enough.
> > +	 */
> > +	lua_State *L = lua_newstate(limited_alloc_f, NULL);
> s/lua_State/const lua_State/

Fixed, thanks!

===================================================================
diff --git a/test/tarantool-c-tests/lj-1248-close-state-early-OOM.test.c b/test/tarantool-c-tests/lj-1248-close-state-early-OOM.test.c
index 6c9cb2ca..fe91d5e9 100644
--- a/test/tarantool-c-tests/lj-1248-close-state-early-OOM.test.c
+++ b/test/tarantool-c-tests/lj-1248-close-state-early-OOM.test.c
@@ -49,7 +49,7 @@ static int limited_memory_on_lua_newstate(void *test_state)
         /*
          * Check that there is no crash and the limit is small enough.
          */
-        lua_State *L = lua_newstate(limited_alloc_f, NULL);
+        const lua_State *L = lua_newstate(limited_alloc_f, NULL);
         assert_true(L == NULL);
         return TEST_EXIT_SUCCESS;
 #endif
===================================================================

> > +	assert_true(L == NULL);
> > +	return TEST_EXIT_SUCCESS;
> > +#endif
> > +}
> > +
> > +#ifndef LJ_NO_UNWIND
> > +#  define LJ_NO_UNWIND 0
> > +#endif
> > +
> > +int main(void)
> > +{
> > +	/* Seehttps://github.com/LuaJIT/LuaJIT/issues/1311. */
> > +	if (!LJ_NO_UNWIND)
> > +		return skip_all("Disabled for external unwinding build due to #1311");
> > +	const struct test_unit tgroup[] = {
> > +		test_unit_def(limited_memory_on_lua_newstate),
> > +	};
> > +	return test_run_group(tgroup, NULL);
> > +}

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2025-09-09  9:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-19  7:40 Sergey Kaplun via Tarantool-patches
2025-09-09  8:22 ` Sergey Bronnikov via Tarantool-patches
2025-09-09  9:44   ` Sergey Kaplun via Tarantool-patches [this message]
2025-09-09  9:43     ` Sergey Bronnikov via Tarantool-patches
2025-12-13 16:16 ` Sergey Kaplun 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=aL_25Wbb7dfGWsXk@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] Correctly close VM state after early OOM during open.' \
    /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