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 282D26F3C8; Mon, 26 Sep 2022 18:55:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 282D26F3C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1664207711; bh=IKergRI15qTVkD7BXSdUwe7gKb/FUGSwPlh5GGnSTog=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=P42/Z5LxbKCVdgIwKQ/f+cFogO/if5mCkkTvF4mPBINbxBZzk0oyMJtn1lDz6+Gg3 5gTgycushfzfE3gDNg2PnyxfpBcG5PAwBIbwAgrMVE3RMm4/NXfJByMnT+8KH2LK1M WnWUpHSbrr2WSxEJMxMaQ7kULGC8c/M57ECHCCj4= Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 0B0656F3C8 for ; Mon, 26 Sep 2022 18:55:09 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0B0656F3C8 Received: by mail-lf1-f52.google.com with SMTP id u18so11542609lfo.8 for ; Mon, 26 Sep 2022 08:55:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=tTJoNwRqls3OH/9/V/8+26UOmtsjswwkN2ct+HduanA=; b=b6JAwqsFmW/DtmHT+WtEnNghprRA6afR17fLejsms1E/erD9/UEOC9rSu/WckCaSDT i/4FiZ+3e4aNpuno/gC42IIn1/P8IqjtlUOZ8DSjE5zCGOLo/otsslELp0SH72lCUbo0 v4RHDORNGIVZXvc8hXbz0ZWVrQbIvt+FeFX2YakAEo47INgkzdvGkGUGpBUu5Fyn+isL WBMBoLExwmnVxWVxl4mt9W76AXgfJvVmuS1VmVBawXmkj6cWF/N7T3pavgVKGGl/DL0t owRbczFxHMfLv+sIREzW0gkkA2tVjv9Y4fIFBmfgVXPLMXVHQnDAeKS5l8NsV24QdpP3 bzJA== X-Gm-Message-State: ACrzQf2TthJ3lWPM90+OU3ovIPGQrB+nUxlzFs3gm04KaLh6VoJKWBAi bl22/dWBCRf5Oat6xePyZrGx0fNN8ljetQ== X-Google-Smtp-Source: AMsMyM7lbS2hO4iksMPMXYVox8ldomme9lYfA+j2pYSV4WxwQFN0lgQIekNzie7UC6kgatFSvg0jxA== X-Received: by 2002:a05:6512:3f90:b0:497:ab3d:5f12 with SMTP id x16-20020a0565123f9000b00497ab3d5f12mr8673496lfa.421.1664207707847; Mon, 26 Sep 2022 08:55:07 -0700 (PDT) Received: from localhost.localdomain (128-69-252-100.broadband.corbina.ru. [128.69.252.100]) by smtp.gmail.com with ESMTPSA id v6-20020a056512348600b0048af9576d30sm2574400lfr.83.2022.09.26.08.55.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 26 Sep 2022 08:55:07 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, sergos@tarantool.org, skaplun@tarantool.org Cc: Maksim Kokryashkin Date: Mon, 26 Sep 2022 18:54:57 +0300 Message-Id: X-Mailer: git-send-email 2.32.1 (Apple Git-133) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit 0/6] Fix external unwinding on M1 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: Maksim Kokryashkin via Tarantool-patches Reply-To: Maksim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patch enables external unwinding on all platforms, that produce unwind tables by default. Follow-up patches fix external unwinding behavior on arm64 MacOS machines. PR: https://github.com/tarantool/tarantool/pull/7719 Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-6096-external-unwinding Original issue: https://github.com/LuaJIT/LuaJIT/issues/698 Tarantool issue: https://github.com/tarantool/tarantool/issues/6096 Maksim Kokryashkin (3): Cleanup and enable external unwinding for more platforms. OSX: Fix build by hardcoding external frame unwinding. OSX/ARM64: Fix external unwinding. Mike Pall (3): OSX/ARM64: Disable external unwinding for now. ARM64: Reorder interpreter stack frame and fix unwinding. OSX/ARM64: Disable unwind info. .github/workflows/macos-x86_64.yml | 20 +- CMakeLists.txt | 3 + cmake/SetTargetFlags.cmake | 26 +- doc/extensions.html | 22 +- src/Makefile.original | 12 +- src/lj_arch.h | 27 +- src/lj_err.c | 321 +++++++++--------- src/lj_frame.h | 12 +- src/vm_arm64.dasc | 209 ++++++++---- ...-6096-external-unwinding-on-arm64.test.lua | 13 + 10 files changed, 389 insertions(+), 276 deletions(-) create mode 100644 test/tarantool-tests/gh-6096-external-unwinding-on-arm64.test.lua -- 2.32.1 (Apple Git-133)