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 8597E6E454; Thu, 17 Feb 2022 19:37:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8597E6E454 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1645115851; bh=elKwZ5ha++XxtaQ7SYt5rY7prhQ0tYyxUtPODs7w2BI=; 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=llrIAT5Pe5LfOULnjTXsSi9J045wfnFH4eKs6qFc/KjnHQ8WHHe9NrnYxLL8vD+hf U9N/W2Ye5XYRFXuMATfCpFs9qdOry0YDCQfHfJBseHB4DPlk4VabJapumyb8TzIs67 29Ta7es8o7ogh5qGQ8l0uJKvLXhZrudHCWAOoBXw= Received: from smtpng3.i.mail.ru (smtpng3.i.mail.ru [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 5EB4C6E454 for ; Thu, 17 Feb 2022 19:37:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5EB4C6E454 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1nKjmb-0003we-A0; Thu, 17 Feb 2022 19:37:29 +0300 Date: Thu, 17 Feb 2022 19:34:12 +0300 To: Maxim Kokryashkin Message-ID: References: <20211006130444.3031234-1-m.kokryashkin@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211006130444.3031234-1-m.kokryashkin@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD923F1B5F87BDC70E6F816DA11F568C20259480F04DD667C3E182A05F5380850400813392F07ED42BACD2E7D9FF9A6248499DED0D93E7A08C6444F29AD5E9F04E2 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7B9EA053ECF1425EFEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006371E8C7BD479B346ED8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D81FB030E2453A603D02B2DA9BB8983F64117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF1175FABE1C0F9B6A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18CB629EEF1311BF91D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6753C3A5E0A5AB5B7089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-8FC586DF: 6EFBBC1D9D64D975 X-C1DE0DAB: 0D63561A33F958A5C694A21C4407B78527BDBD741D79AE843290ACD1C6C9DE97D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA752FA4FC647EE431D9410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D340D3A19269BBEBAAF4DF4A1CC34FEBE2FC5BAD3A463B461E491B701D0B9C66CAF92A50C31A46F73EB1D7E09C32AA3244CCFD4578C6ADDB01DED0AAD697FDE91C8B038C9161EF167A18D5DD81C2BAB7D1D X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj8IMJ5WMmQGHUlrYn3eXi8Q== X-Mailru-Sender: 689FA8AB762F739339CABD9B3CA9A7D65414F6DC83BDF87ABD9AFB5592C4BB01A7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E3365FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] test: adapt test checking global environment 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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Max, I've checked the patch into all long-term branches in tarantool/luajit and bumped a new version in 1.10, 2.8 and master. On 06.10.21, Maxim Kokryashkin wrote: > LuaJIT doesn't take into account tail calls for > call-level counting, so `getfenv()` behaviour is different > in tail calls. getfenv()` default level is 1 which is invalid for > the test case when is called from tail call (`lj_debug_frame()` > returns NULL). > > This commits adds local varibles, so there is no tail call any more. > > Part of tarantool/tarantool#5870 > --- > Issue: https://github.com/tarantool/tarantool/issues/5713 > GitHub branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-5713-adapt-test-global-environment-PUC-Rio > CI: https://github.com/tarantool/tarantool/tree/fckxorg/gh-5713-adapt-test-global-environment-PUC-Rio > > test/PUC-Rio-Lua-5.1-tests/closure.lua | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) > > -- > 2.33.0 > -- Best regards, IM