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 333BA125A46A; Thu, 27 Feb 2025 12:19:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 333BA125A46A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1740647953; bh=l+Ncrx/puxNZ1p8dppU14KSIZNueboE0++hBWD86yRM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=niK4n2P/n2S/kOH8Ho9l0DdVGIPkNmCdgj9RagWEGtb4daDUJV1gkecdmPi5PwNjj Ew0XCHtdtzuYNHPDEdK63XNMfmC7//EWNPFj8OiCYkfk1Z/4IuErfH0VAarScmdLIr ppZhdNN4J5LxsdfaxroJPkQla+ni2RLEBSGv/QXM= Received: from send277.i.mail.ru (send277.i.mail.ru [95.163.59.116]) (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 6CE9D125A466 for ; Thu, 27 Feb 2025 12:19:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6CE9D125A466 Received: by exim-smtp-75f5fcb77d-9pndw with esmtpa (envelope-from ) id 1tna2w-00000000Jm9-1URk; Thu, 27 Feb 2025 12:19:10 +0300 To: Sergey Bronnikov Date: Thu, 27 Feb 2025 12:18:25 +0300 Message-ID: <20250227091825.31081-1-skaplun@tarantool.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9F0D6B4A195F95273E367E0996F0E4526B1405A818E011E67182A05F5380850409B5F2D63650D874C3DE06ABAFEAF67050B568141BABCFE307C038F789CBE1ECA8B3203750C901C87 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE737BB76880A4CA9A4EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006371C57DA68CF6C21388638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8D1B8D024F5F017B1799E502BB2E066B986B2CB8A3FAA061FCC7F00164DA146DAFE8445B8C89999728AA50765F79006370D9A29B7FD16D1239FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3776A0366D588B3C3117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637BBEA499411984DA1EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A5F40C67BC7A0EB8345002B1117B3ED6965726E4C19E0127FD92B673A2F5DDD7E7823CB91A9FED034534781492E4B8EEADF12279BA039A6965C79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF943F8CAA5E1A9DEF1F166B0D85D99F17545D5C80DF6A2C4C32E5C7A6FB76AAA1A54F2CFF063EE8C0D4F7E0138972EF02D3F1C82F5CAE0DC79D6D1CFBE38A42E320A14B595495CED45F4332CA8FE04980913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVYrk7BQKFwEtJluas5u7UPwKbRth7N1TDw== X-DA7885C5: 0ACBF625C980DD90F255D290C0D534F9ACB5B6507F1355BF2A9C6F593D2E19A35FBF92E3329A7D625B1A4C17EAA7BC4BEF2421ABFA55128DAF83EF9164C44C7E X-Mailru-Sender: 689FA8AB762F739381B31377CF4CA2194012BD5CF41F25EC05FB495499DC4CA9EC23B42CEFFE31B6E49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit] test: fix fix-mips64-spare-side-exit-patching 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" The aforementioned test is flaky when run under Tarantool due to not enough room for all traces. The flushing of all traces at the start and collecting them solves the issue. The same issue may occur for the , so it is adjusted as well. --- Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-mips64-flaky-test To reproduce, run the following command without the patch from the root of the Tarantool repository: | ctest --repeat-until-fail 1000 --test-dir third_party/luajit/ -R fix-mips64-spare-side-exit-patching .../fix-mips64-spare-side-exit-patching.test.lua | 5 +++++ .../gh-6098-fix-side-exit-patching-on-arm64.test.lua | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/tarantool-tests/fix-mips64-spare-side-exit-patching.test.lua b/test/tarantool-tests/fix-mips64-spare-side-exit-patching.test.lua index 703d8e69..dd9f2073 100644 --- a/test/tarantool-tests/fix-mips64-spare-side-exit-patching.test.lua +++ b/test/tarantool-tests/fix-mips64-spare-side-exit-patching.test.lua @@ -15,6 +15,11 @@ local MAXTRACE = 2000; test:plan(1) +-- Flush all possible traces and collect them to be sure that +-- we have enough space. +jit.flush() +collectgarbage() + local function find_last_trace() local candidate = misc.getmetrics().jit_trace_num for traceno = candidate, MAXTRACE do diff --git a/test/tarantool-tests/gh-6098-fix-side-exit-patching-on-arm64.test.lua b/test/tarantool-tests/gh-6098-fix-side-exit-patching-on-arm64.test.lua index 678ac914..f5fc4681 100644 --- a/test/tarantool-tests/gh-6098-fix-side-exit-patching-on-arm64.test.lua +++ b/test/tarantool-tests/gh-6098-fix-side-exit-patching-on-arm64.test.lua @@ -9,6 +9,11 @@ local frontend = require('utils').frontend test:plan(1) +-- Flush all possible traces and collect them to be sure that +-- we have enough space. +jit.flush() +collectgarbage() + -- The function to be tested for side exit patching: -- * At the beginning of the test case, the branch is -- recorded as a root trace. -- 2.48.1