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 7B1756B4ED2; Tue, 31 Oct 2023 19:04:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7B1756B4ED2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1698768286; 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=za/UrneW95qO0gqoi13Q4Ra8hmJUTpaGqj/7jxzisVi6cSMnWaZLwwIVOrSbfdqIY KgERPOH28UhBx7R8ZqE8zLfyjUGlUy6wypQQDkzidHdERp/f7CJPY+PZ1ljfYYu3ob hSuMR1sTv5TFlS+KMhcxpiNMi1lhnv8moPa3x5X4= Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 396B06B3EC6 for ; Tue, 31 Oct 2023 19:04:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 396B06B3EC6 Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2c594196344so85406091fa.3 for ; Tue, 31 Oct 2023 09:04:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698768283; x=1699373083; 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=UfINh3wV8lO8zNgG2P6A/aeZegsEet9QackRlkum7s05MoJTnqfSNE/Y7BgTN0VGzv znFglqKmDEFmYr8VC8pNkGxIWOZT2Zab7UfbLYuYkTnFKmNaxVi1eLuzcbOan/lWTZFH 2VFMuJVmj5FucJIXsM5NJN2wzN3KccjudU9cI7A6335KI4zGPg7ybgA0/uNIsUzPtCVt 64v/KS487Dk3Zsakkl6uVx409pCnRSQM8glo1HEZ/N4ck6OZNnCJ23zhCBezYd3SPICC LPsXusayWipRLzv3ybitqc8xM0ZHnzOGML33Ka+VSfYF5iYKgnd5TUvdiyDsxFKMpGXy CtvQ== X-Gm-Message-State: AOJu0YzJrpgm+nqby1EnSM0RX99hKOjP5McUe5ChEos0QCv9F7PojYVp j+1Ir4YeLPmNrcab5D0kGTpn8iBoZfR1JA== X-Google-Smtp-Source: AGHT+IGUgxGSFjgUVZ1Wvv6FurabS8dgzt3VpG+d0MJnO6GzeRhC+ctDZLnHYFYEOydnJMM9TWBC7Q== X-Received: by 2002:a2e:b545:0:b0:2c1:5645:a2c0 with SMTP id a5-20020a2eb545000000b002c15645a2c0mr9896414ljn.35.1698768282896; Tue, 31 Oct 2023 09:04:42 -0700 (PDT) Received: from localhost.localdomain (95-24-0-215.broadband.corbina.ru. [95.24.0.215]) by smtp.gmail.com with ESMTPSA id e20-20020a2e5014000000b002c02bccfb5esm241082ljb.77.2023.10.31.09.04.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 31 Oct 2023 09:04:41 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, sergeyb@tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Kokryashkin Date: Tue, 31 Oct 2023 19:04:34 +0300 Message-Id: <20231031160437.39648-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)