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 D66CB6AB7E7; Fri, 27 Oct 2023 15:58:07 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D66CB6AB7E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1698411487; bh=o2mPaW4pO7bdL+2QK7UoJtBVZgTzz9QMzKzOHdJVRU8=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=mRYEi1PTSq4dTej8ME1FyOy692y/PdFW+7WZjWWxIQC/wZ9ZRcWCcQjbwOHkVSIFy lpNqNPE70/23uD+dFmHAa6BKznVyw5gEyWzH1q6eYFpDXDAUy9Gdsi99aUdyB9PnKK 1FK4mBL2pUNY4UI4/z+MhndgEajqtC1OSBt3x0Ok= Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 E10786AB7E7 for ; Fri, 27 Oct 2023 15:57:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E10786AB7E7 Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5082a932bdeso765167e87.3 for ; Fri, 27 Oct 2023 05:57:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698411462; x=1699016262; 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=P5lTX0bHsal3zWegDwFRjA7KQfu8Wg4Ty8D0DY2vYBQ=; b=C5H4n2rz6bX1cE/184jH5pEXoKw6Opk85mNwBRs7eU/r03FQ7j0LaGdt/qig/W5QmR 5DsZdY8ST1EipX11gztCFIFIOdtI/yKEbNK2VITdPJB6i+y/N5AO6u9PWzYCvPSVsKOz huUvebROBsDt3sDqAs5nodgx99jc7jlALOR/adU9ItHOHKTTv7ZBrPPoG83ES7BbVsmY xu9TRd4Pr+F6rLOwHX43tl8geP85Igkl3YovWOE1W4uRHZSil573WcURHK/GPuyOyc9l 0g0+o2bQ1+NJRZFyxZlwIoGfOye/OIvRGoofapndDZclZV4OARg2ofpXPlEcYNZJwMRq aGZw== X-Gm-Message-State: AOJu0Yzk1RfOc/N17jRuoUX6rOIfq0vyLPbLSeBSPrAUVzghwsY6vQ98 DfddWjvEBIzzDoXvbZwBsiUvIfw3bKXLTw== X-Google-Smtp-Source: AGHT+IFVANPSamIpO3SWXQlhIXnfPNDvzimlB5qLp1y1Zw1rOEJiKfXN+bINNPnzOcX4pl4sHbCmVQ== X-Received: by 2002:ac2:53ab:0:b0:507:ce2f:8f0c with SMTP id j11-20020ac253ab000000b00507ce2f8f0cmr1833156lfh.35.1698411461907; Fri, 27 Oct 2023 05:57:41 -0700 (PDT) Received: from localhost.localdomain ([185.205.79.42]) by smtp.gmail.com with ESMTPSA id g3-20020a19e043000000b004ff8cd27a61sm270510lfj.213.2023.10.27.05.57.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 27 Oct 2023 05:57:41 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, sergeyb@tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Kokryashkin Date: Fri, 27 Oct 2023 15:57:36 +0300 Message-Id: <20231027125738.29527-1-max.kokryashkin@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit 0/2] gc: handle errors in finalizers 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 patchset introduces VM event for finalizer error handling. The first patch contains the VM event implementation, the second is just a minor fixup for the first one. Branch: https://github.com/tarantool/luajit/tree/fckxorg/lj-946-print-errors-from-gc-fin PR: https://github.com/tarantool/tarantool/pull/9315 Issue: https://github.com/LuaJIT/LuaJIT/pull/946 Mike Pall (2): Print errors from __gc finalizers instead of rethrowing them. Fix last commit. src/Makefile.dep.original | 14 +++---- src/lib_aux.c | 35 +++++++++++++++- src/lj_gc.c | 10 ++++- src/lj_vmevent.h | 7 ++-- test/PUC-Rio-Lua-5.1-tests/gc.lua | 12 +++--- .../fix-finalizer-error-handler-init.test.c | 30 +++++++++++++ .../lj-946-print-errors-from-gc-fin.test.lua | 42 +++++++++++++++++++ 7 files changed, 130 insertions(+), 20 deletions(-) create mode 100644 test/tarantool-c-tests/fix-finalizer-error-handler-init.test.c create mode 100644 test/tarantool-tests/lj-946-print-errors-from-gc-fin.test.lua -- 2.39.3 (Apple Git-145)