From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DCAD629676 for ; Fri, 15 Mar 2019 03:16:49 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c-dPCMZR1emJ for ; Fri, 15 Mar 2019 03:16:49 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 284212421C for ; Fri, 15 Mar 2019 03:16:49 -0400 (EDT) From: Kirill Yukhin Subject: [tarantool-patches] [PATCH] Fix for luajit GC issue. Date: Fri, 15 Mar 2019 10:16:42 +0300 Message-Id: <9a5ea628e6afe6b48b45031db65da03a713e49f1.1552633067.git.kyukhin@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: Kirill Yukhin This commit is actually a cherry-pick of https://github.com/openresty/luajit2/commit/64b91557356e18dddc2d3681abef632642bf2527 Closes #3725 Closes #3751 Closes #3840 Closes #3916 --- https://github.com/tarantool/luajit/commits/kyukhin/fix-gc https://github.com/tarantool/tarantool/issues/3725 https://github.com/tarantool/tarantool/issues/3840 https://github.com/tarantool/tarantool/issues/3751 https://github.com/tarantool/tarantool/issues/3916 src/lj_clib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lj_clib.c b/src/lj_clib.c index 6142659..c06c091 100644 --- a/src/lj_clib.c +++ b/src/lj_clib.c @@ -372,6 +372,7 @@ TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name) cd = lj_cdata_new(cts, id, CTSIZE_PTR); *(void **)cdataptr(cd) = p; setcdataV(L, tv, cd); + lj_gc_anybarriert(L, cl->cache); } } return tv; -- 2.19.1