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 2C0AA6F3C8; Thu, 6 Oct 2022 12:48:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2C0AA6F3C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1665049736; bh=3uT8xROS4J47+wC93j4qI3frHsmTKIacCKn2D5x7b5g=; h=To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rpw9zpMn/HTVoDB7lXlJpr44Cu1ep1FBDZCY6ZxIJLoMIMlVj4BZcdqsRAtcU2Vps zeHTfp3GYieS1TGAl1rdfi9cDSliLojkQbBlzY58WABjUbSfPwK134/DNo5pEhjw/B Uif+DwRzytRyPt5tyhMoQlEyLR8YRnr9FXli2kvM= Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 524E16F3C8 for ; Thu, 6 Oct 2022 12:48:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 524E16F3C8 Received: by mail-lj1-f176.google.com with SMTP id t16so1606994ljh.3 for ; Thu, 06 Oct 2022 02:48:54 -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:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=h6JXIlJWeTlrTJS+3IFKRJvZnrZ2FkrRkMuy6kk8mRw=; b=NviXB0cRT8HIAL1R8oSuMoaKpMPSYJUzFUNwbtcqhZHA3RzDFn2gLIBZn7rGgVPHGq 1SEjCjtrM/iMMzos/vB/9tKI+hQlhW1hwTiDxhyAo8QJgE7cvnQWriP+x9VaTvaGsss8 B3JmqOr0Zy1lOCHD9i77oeVtGy/H873WHmoJy3E2Q/umAhchbu6iQeLYi0lkdYwIqUk0 kR3lFzZQmnNWqZcDbmz4hkg9MpkYioJ1P/wOcs6NHo44m8Ax4+eJQ0IykPfovdib8ipv lf67DS4cuC/HfNB8zS94XJb+2Nlz4IcNT9WRtNjrUuHgTrbVlADmH5Z9RiJ+znot3RTO tzlQ== X-Gm-Message-State: ACrzQf3dMW1oXKZcZIUS4xc/NqCPlmogUqq6EFAEdqopwwS64so9AwcL MEWmQbQ/s+toU1UvVValV5VDnj/TcDfdjrytZ28= X-Google-Smtp-Source: AMsMyM7UEzHypZFEpUfVkfBDDEvzrqZ9U6fTYERQWKI+GG075WCjq+uPPcpBGxUbrzj5Sj5lnU4Z4A== X-Received: by 2002:a2e:954f:0:b0:26d:b4cc:76e1 with SMTP id t15-20020a2e954f000000b0026db4cc76e1mr1396207ljh.219.1665049733244; Thu, 06 Oct 2022 02:48:53 -0700 (PDT) Received: from localhost.localdomain (128-69-252-100.broadband.corbina.ru. [128.69.252.100]) by smtp.gmail.com with ESMTPSA id o20-20020a056512231400b004979ec19380sm2628676lfu.285.2022.10.06.02.48.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Oct 2022 02:48:52 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, sergos@tarantool.org, skaplun@tarantool.org Cc: Maksim Kokryashkin Date: Thu, 6 Oct 2022 12:48:43 +0300 Message-Id: <20221006094849.85442-1-max.kokryashkin@gmail.com> X-Mailer: git-send-email 2.32.1 (Apple Git-133) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v2 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" Changes in v2: - Fixed nits as per review by Sergey and Sergos. - Elaborated on questions from reviewers. Branch and PR are force-pushed. 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)