Skip to content
Snippets Groups Projects
Commit 21f2ba4c authored by Sergey Kaplun's avatar Sergey Kaplun Committed by Sergey Kaplun
Browse files

luajit: bump new version

* FFI: Treat cdata finalizer table as a GC root.
* FFI: Turn FFI finalizer table into a proper GC root.

Part of #10199

NO_DOC=LuaJIT submodule bump
NO_TEST=LuaJIT submodule bump
parent 9d7b33bc
No related branches found
No related tags found
No related merge requests found
## bugfix/luajit
Backported patches from the vanilla LuaJIT trunk (gh-10199). The following
issues were fixed as part of this activity:
* Fixed GC marking of the cdata finalizer table.
......@@ -128,7 +128,7 @@ luaL_pushcdata(struct lua_State *L, uint32_t ctypeid)
/* Handle ctype __gc metamethod. Use the fast lookup here. */
cTValue *tv = lj_tab_getinth(cts->miscmap, -(int32_t)ctypeid);
if (tv && tvistab(tv) && (tv = lj_meta_fast(L, tabV(tv), MM_gc))) {
GCtab *t = cts->finalizer;
GCtab *t = tabref(G(L)->gcroot[GCROOT_FFI_FIN]);
if (gcref(t->metatable)) {
/* Add to finalizer table, if still enabled. */
copyTV(L, lj_tab_set(L, t, o), tv);
......
Subproject commit 55bb05b97e5145b6506ef4390cadd89709338ed7
Subproject commit a7da08b2b15a0ef4afce4ee604dc02aa259ed8a8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment