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 ADA7B45FC05; Mon, 15 May 2023 12:16:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org ADA7B45FC05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1684142190; bh=FOjSs/5dwXzO0fhUTuWCBNeK2TGNgvEZ6FmaP8v9RrQ=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=c+vf6pAquzbtcRvM5s0ueqyvc3njNX9Q/gNtXXl1Y9/MHv8oV9h3UyTkTt7k5c18H hqLmd6bY8MlwMKokoG1cl0C4XemhjCGbyxieu+k3FbJaQxJao91jHGmrIIFZ4vngOF uFwO+9yRaty0bZtFIHuIWY0r1Dkh5A1VsiPpW44E= Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 038C4352CC1 for ; Mon, 15 May 2023 12:16:29 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 038C4352CC1 Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2ac806f4fccso134779601fa.1 for ; Mon, 15 May 2023 02:16:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684142188; x=1686734188; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hkk3a/4NYm0AIXtk/rTjSDuUsdEeTQvWBTTRUGt2GGg=; b=e7XA2PO2iDv5h8vu/o8CneZBX65CT9Hhz66jvIWzZQaMG57+fIhWnRKwVdE7q7VUUy WsI8REIqSn7HZ/6wv/qI0RK239idf0FiD/cjMNlgdBRwKheyIDEO7m650PjlswP/658f lUTUL6jpRBvvD73THFXa8Ih2egPUUrxd+XepB486yT46JW/7IWeiNZyLymbRuLw745F6 AwbbYj06dh0K/P0PwNidj6bt/LdNBf0R0FiU3zKpIY8TMZiF4DVob9mQe8opI6CHIgg5 4lkp8V+Q8VDVxLvuLa887bxAbiTTn/BhCSJeceFaBbXvVHIf5VJNKVBW6bNSfQFBCE3G BL+w== X-Gm-Message-State: AC+VfDxUDg6GfCSZfyK7f3hwx0jzDDm6sX8Ii94TQSFGbhJ1X3gi8qfd JgujG5mkY+fDVgfsE9qqv1y9HceRYyr/Bw== X-Google-Smtp-Source: ACHHUZ4xhCnp6CV+DYu1w7WYn8ecwQjjx8gq2MJllBqoGe2RKA4qE1y7ztPZ4q32ALjOReY2NF2OQg== X-Received: by 2002:a2e:9c47:0:b0:2ad:aac1:c4e with SMTP id t7-20020a2e9c47000000b002adaac10c4emr5278714ljj.41.1684142187621; Mon, 15 May 2023 02:16:27 -0700 (PDT) Received: from localhost.localdomain ([185.205.79.32]) by smtp.gmail.com with ESMTPSA id a4-20020a2e88c4000000b002ac7c9d2806sm3739607ljk.50.2023.05.15.02.16.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 15 May 2023 02:16:27 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, sergos@tarantool.org, imun@tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Kokryashkin Date: Mon, 15 May 2023 12:16:18 +0300 Message-Id: <20230515091622.30232-1-max.kokryashkin@gmail.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v4 0/4] jit: add exception unwinding 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" Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-7745-exceptions-on-traces Issue: https://github.com/tarantool/tarantool/issues/7745 PR: https://github.com/tarantool/tarantool/pull/8308 Mike Pall (4): Handle on-trace OOM errors from helper functions. Disable unreliable assertion for external frame unwinding. OSX: Disable unreliable assertion for external frame unwinding. Fix IR_RENAME snapshot number. Follow-up fix for a32aeadc. CMakeLists.txt | 6 + doc/status.html | 7 - src/Makefile.original | 3 + src/lj_arch.h | 12 + src/lj_asm.c | 86 ++++-- src/lj_dispatch.h | 4 +- src/lj_err.c | 279 +++++++++++++++++- src/lj_err.h | 19 +- src/lj_ffrecord.c | 2 + src/lj_jit.h | 2 + src/lj_mcode.c | 5 +- src/lj_opt_loop.c | 1 + src/lj_record.c | 3 +- src/lj_snap.c | 1 + src/lj_state.c | 1 + src/lj_target_x86.h | 2 + src/lj_trace.c | 61 +++- src/lj_trace.h | 3 + src/lj_vm.h | 3 + src/vm_arm.dasc | 3 +- src/vm_arm64.dasc | 4 +- src/vm_mips.dasc | 9 +- src/vm_mips64.dasc | 10 +- src/vm_ppc.dasc | 3 +- src/vm_x64.dasc | 6 +- src/vm_x86.dasc | 4 +- .../gh-7745-oom-on-trace.test.lua | 41 +++ .../lj-603-err-snap-restore.test.lua | 77 +++-- .../lj-688-snap-ir-rename.test.lua | 60 ++++ 29 files changed, 626 insertions(+), 91 deletions(-) create mode 100644 test/tarantool-tests/gh-7745-oom-on-trace.test.lua create mode 100644 test/tarantool-tests/lj-688-snap-ir-rename.test.lua -- 2.39.2 (Apple Git-143)