From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id EF2E86E1EC; Tue, 24 Nov 2026 20:29:00 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org EF2E86E1EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1795541341; bh=cfoDLwyjPMuIsrSp/euOXQ46d9A8FEdOSLZj2wd/EVU=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=plsdIwavOZmQ5u3foZRcF861ezUDnjWyk7d75UI8lH3jX6evikb1EA2wV9NIAO50N Zf08spmXWzSM2EvBIt9NSehu0ZPAP4ueU7kKG7gkxaei2jECYjGZx+zr1QhkqPRCB6 yYinZL0+LFOnE7ixZM26ZhrPWk26KpFt/QFi0F+A= Received: from send104.i.mail.ru (send104.i.mail.ru [89.221.237.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 5214D6E1EC for ; Tue, 24 Nov 2026 20:29:00 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5214D6E1EC Received: by exim-smtp-56bb8ff957-6wdzw with esmtpa (envelope-from ) id 1xVuKB-00000000OHX-0vL7; Tue, 24 Nov 2026 20:28:59 +0300 Date: Tue, 24 Nov 2026 20:31:12 +0300 To: Evgeniy Temirgaleev Message-ID: References: <20261124155125.1713061-1-skaplun@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD977B76FDA87AFA8B9BEE037B3CCA640BD0EA15543A09B6C6D182A05F5380850403D715AC5A08E0B893DE06ABAFEAF6705C1F15C7ED103DA7C7CDEC90B8B87A66F1A912C66E1114972 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78E88BD1CA827EF00C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6759CC434672EE6371C2A783ECEC0211ADC4224003CC836476D5A39DEEDB180909611E41BBFE2FEB2BE9DC1D39F8E8FC1996A43DB11CA416EA1453941C685733A334CBB80CB7FCAF0D9FA2833FD35BB23D27C277FBC8AE2E8B974A882099E279BDA471835C12D1D977C4224003CC8364762BB6847A3DEAEFB0F43C7A68FF6260569E8FC8737B5C2249EC8D19AE6D49635B68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7CA35FE21102777C0943847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A574842CA851E5C2F75002B1117B3ED6968103BDCCE4769D1DC66B2B37046EC955823CB91A9FED034534781492E4B8EEADF5E532225D4D775BBDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0AD73CAD6646DEDE1918E10F71CB4DF9F96AB70F9BE574AE9C625B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D65930A9F7A853D6884E2D082C69F340511CC24D523E648347D70CD334E067FCA4BBA6006B128ED92039B8341EE9D5BE9A0A24C6A59BDB5C27DEE548810558D54D1E0D0BCCB9C13AB1936536EB022892E5344C41F94D744909CECFA6C6B0C050A61A8CAF69B82BA93681CD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXOcIETfglQORZ0zpDET4Zrk3igikrdHlWJV0P0XquW8gOphDQ8QPJMA= X-Mailru-Sender: 689FA8AB762F73937C9FA53A4753B3138FCCAF2399A3EE71721F1F8DA481D5657D735DDE0BBD2F33E49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] FFI: Adjust J->maxslot after ffi.offsetof. X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi, Evgeniy! Thanks for the review! On 24.11.26, Evgeniy Temirgaleev wrote: > Hi, Sergey! Thanks for the patch! LGTM with a minor comment. See my reply below. > > On 11/24/26 6:51 PM, Sergey Kaplun wrote: > > From: Mike Pall > > > > Reported by Elias Hogstvedt. > > > > (cherry picked from commit 3000f7cdb1123f2a4d8b690d4292c541359c670c) > > > > diff --git a/test/tarantool-tests/lj-1514-ffi-offsetof-maxslot.test.lua b/test/tarantool-tests/lj-1514-ffi-offsetof-maxslot.test.lua > > new file mode 100644 > > index 00000000..dd6cc50f > > --- /dev/null > > +++ b/test/tarantool-tests/lj-1514-ffi-offsetof-maxslot.test.lua > > @@ -0,0 +1,34 @@ > > +local tap = require('tap') > > + > > +-- The test file to demonstrate an incorrect JIT slots recording > > +-- for the `ffi.offsetof()` fast function. > > +-- See also: https://github.com/LuaJIT/LuaJIT/issues/1514. > > +local test = tap.test('lj-1514-ffi-offsetof-maxslot'):skipcond({ > > + ['Test requires JIT enabled'] = not jit.status(), > > +}) > Nit, may we skip test if LUA_USE_ASERT build flag is off and the test > passed without a patch? Generally it is possible but requires an additional ENV variable set. OTOH, it is the common practice to run the test in the Release build even if it is passed before the patch. Mostly it is done to avoid regressions in the future. Since most LuaJIT tests run for 0 sec, I suppose this is acceptable not to skip it and be more confident in our testing for the Release build. > > -- > -- > Best regards, > Evgeniy Temirgaleev > -- Best regards, Sergey Kaplun