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 61884C16584; Mon, 3 Jun 2024 17:38:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 61884C16584 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1717425502; bh=NS6alIQPg3jlCaoZj3Qhz7LBxP3j9L0JwkQRzpH9UAg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=qB+qa6Pa7jiRpThaBBlwz4QsY6wK2KALbj2YIW91PG7U8ADuZkkN+hWVLDhcu/4OV Ub8YjCzoZSb5U/4V1z/uKxPKcdYwyaX/ibGhmbLIxFH0ovNqcoB4PNLiTb9OHslBHg mszMUAGmlwcXjZubn+ha7NcgF8rTMwrbPk0MBr0A= Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [95.163.41.82]) (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 853C4554FC7 for ; Mon, 3 Jun 2024 17:38:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 853C4554FC7 Received: by smtp44.i.mail.ru with esmtpa (envelope-from ) id 1sE8pG-0000000F2Sb-1JI1; Mon, 03 Jun 2024 17:38:18 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Mon, 3 Jun 2024 17:33:58 +0300 Message-ID: X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD98B114D81C723B2780F99F4C6D3448FA45A390B502CA9F95B182A05F5380850404C228DA9ACA6FE27F2D9B08F0ADEE2D5411046492FDDF8065513B43275234931141FDF0C5FD4DC6A3E3E97FC8DFF7329 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE732F68F8AF5E5BA59EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637AF379580E0D677568638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D886E35235BE1610A0262E5AE63C0E75ACF2FF809228E2D1D4CC7F00164DA146DAFE8445B8C89999728AA50765F790063793270F7220657A0A389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8989FD0BDF65E50FBF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947C1E1736EDDE8D47909735652A29929C6C4AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C3FCA2E8B66C9462FCBA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CF17B107DEF921CE791DD303D21008E298D5E8D9A59859A8B6D082881546D9349175ECD9A6C639B01B78DA827A17800CE70012B0FBE38D23AE731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: 0D63561A33F958A5DCB2684A46B2A1535002B1117B3ED69666C900FFD48A85D6F09842853758E9E5823CB91A9FED034534781492E4B8EEAD05E80F4396618BB2C79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742DC8270968E61249B1004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34738A88CA0C70A558471B5935DCBE638448077306E5DA32C5626C19AFB8FF97E9E00778C813F19AB21D7E09C32AA3244C70D5692ECE6B821D7215182CA7F288609EA5AB8243169DFEEA455F16B58544A21C197AAF4D2E4732A5AE236DF995FB59829709634694AABAED6A17656DB59BCAD427812AF56FC65B X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgkM4jmMdPPv82pqpWydhIp X-Mailru-Sender: 520A125C2F17F0B1A9638AD358559B59011579B3A2686643411046492FDDF8065513B43275234931B7CBEF92542CD7C88B0A2698F12F5C9EC77752E0C033A69E86920BD37369036789A8C6A0E60D2BB63A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 0/4] Fixes for ctypes with attributes 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 first two patches fix the parsing and calculation for size and align for C++ references. The last two patches fix the `ffi.metatype()` behaviour for C types with attributes. Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-861-1005-ffi-fixes Be aware that CI is red due to infrastructure problems with aarch64 hosts and being unable to download manifests for ecosystem integrational CI. Related issues: * https://github.com/tarantool/tarantool/issues/9924 * https://github.com/LuaJIT/LuaJIT/issues/861 * https://github.com/LuaJIT/LuaJIT/issues/1005 Mike Pall (4): FFI: Fix ffi.alignof() for reference types. FFI: Fix sizeof expression in C parser for reference types. FFI: Allow ffi.metatype() for typedefs with attributes. FFI: Fix ffi.metatype() for non-raw types. src/lib_ffi.c | 6 +-- src/lj_cparse.c | 2 +- src/lj_ctype.c | 8 +++ src/lj_ctype.h | 1 + .../lj-861-ctype-attributes.test.lua | 53 +++++++++++++++++++ 5 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 test/tarantool-tests/lj-861-ctype-attributes.test.lua -- 2.45.1