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 53F205FC8F2; Fri, 29 Sep 2023 09:20:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 53F205FC8F2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1695968422; bh=Jpt05oHj8Jn7IfOyxrcqz+eaMsoI1PqkjE7kOvp0VGw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=VGXfFwyFwd3GzQwdEFFdGTW0o0yAwo2HzKDId21evfSHpiOsnRIs8h9mAws41iGvq kgl1qVJ/dBnFe7QGoMe9kaZsFJnE94BCDRdwAtO9t+H1jPyiEEzdQZfL4dIkZN2MYY b6Khfm5yW/L8/GxlM4/ARAYmhHSyMeiCybp4gM7Y= Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 5962B539166 for ; Fri, 29 Sep 2023 09:20:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5962B539166 Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-50567477b29so1714319e87.3 for ; Thu, 28 Sep 2023 23:20:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695968420; x=1696573220; 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=lOtbS8vlo2qobvfBScKkZXyRPjazNuEnw6Yt6xZK810=; b=bMkLsDHzxioTy8HSqzMPXA2hnupXE9EqLuaAernrbYEsNLLCHx+PkdSiZ2F/F+fy25 E/ys51ANMnJcxhygutokbrSufYVZ9XUdqt8Xn541yJ19LRn1CQQy3atnOrxQpOHr64/2 mxkTRQtIRY1IX91F5UQMclJK6hKKRxUICLDP15ymx8L+ZKtBxJDP6V0Eqjugd6nJVVk3 OXto+sQnp+7WgRMR4wkTF6VqqN+NBxVT35UoTNLb+WUe1kNsg4YE0DBbf1/he9qAklJp AlFnwDYqj4hKk8VVGyHi0wHbtnRotg/8SmFmlthLKQmeMGc9OpJUuzocPDyKnDbzGFjt pM/A== X-Gm-Message-State: AOJu0YyiRsqfeFKerrWTRQaAf0ltrQ57C/kqPYGjU8DhyjJwHEBHuGmF cn5c0BD+CUABqNeUvMdAFpSC7eMP+r0= X-Google-Smtp-Source: AGHT+IHrqhqWFsLRnVRHRHozW6X/PRzJO4M3RFmZ5NcFgx91tsKsjjOUoJ8qh5MWWoeEs/AM9NNzmQ== X-Received: by 2002:a05:6512:3490:b0:503:31dc:7d64 with SMTP id v16-20020a056512349000b0050331dc7d64mr2500363lfr.21.1695968419990; Thu, 28 Sep 2023 23:20:19 -0700 (PDT) Received: from localhost.localdomain ([93.175.28.59]) by smtp.gmail.com with ESMTPSA id c14-20020a056512238e00b0050485bad4b4sm917717lfv.222.2023.09.28.23.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 23:20:19 -0700 (PDT) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, skaplun@tarantool.org, sergeyb@tarantool.org Date: Fri, 29 Sep 2023 09:20:09 +0300 Message-ID: X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v2 0/5] Fix error-throwing on an incorrect coroutine 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: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v2: - Fixed comments as per offline talk with Igor: * Reverted one more patch for ARM ('arm64: fix cur_L restoration on error throw'). * Added test from the original issue LuaJIT/LuaJIT#1066 Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-6323-fix-curL PR: https://github.com/tarantool/tarantool/pull/9168 Maxim Kokryashkin (4): Revert "Fix cur_L tracking on exceptional path" Revert "Update cur_L on exceptional path" Revert "arm64: fix cur_L restoration on error throw" Revert "Update cur_L on exceptional path (arm)" Mike Pall (1): Restore cur_L for specific Lua/C API use case. src/lj_err.c | 5 ++- src/vm_arm.dasc | 2 -- src/vm_arm64.dasc | 2 -- src/vm_x64.dasc | 8 ++--- src/vm_x86.dasc | 8 ++--- test/tarantool-tests/CMakeLists.txt | 1 + ...-fix-cur_L-after-coroutine-resume.test.lua | 32 +++++++++++++++++++ .../CMakeLists.txt | 1 + .../libcur_L_coroutine.c | 22 +++++++++++++ 9 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 test/tarantool-tests/lj-1066-fix-cur_L-after-coroutine-resume.test.lua create mode 100644 test/tarantool-tests/lj-1066-fix-cur_L-after-coroutine-resume/CMakeLists.txt create mode 100644 test/tarantool-tests/lj-1066-fix-cur_L-after-coroutine-resume/libcur_L_coroutine.c -- 2.42.0