Tarantool development patches archive
 help / color / mirror / Atom feed
From: Kirill Yukhin <kyukhin@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Yukhin <kyukhin@tarantool.org>
Subject: [tarantool-patches] [PATCH] Fix for luajit GC issue.
Date: Fri, 15 Mar 2019 10:16:42 +0300	[thread overview]
Message-ID: <9a5ea628e6afe6b48b45031db65da03a713e49f1.1552633067.git.kyukhin@tarantool.org> (raw)

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

             reply	other threads:[~2019-03-15  7:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-15  7:16 Kirill Yukhin [this message]
2019-03-15 14:05 ` [tarantool-patches] " Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9a5ea628e6afe6b48b45031db65da03a713e49f1.1552633067.git.kyukhin@tarantool.org \
    --to=kyukhin@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH] Fix for luajit GC issue.' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox