Skip to content

Commit d92380f

Browse files
committed
Fix for luajit GC issue
This commit is actually a cherry-pick of openresty/luajit2@64b9155 Closes #3725 Closes #3751 Closes #3840 Closes #3916
1 parent 3de8f28 commit d92380f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lj_clib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name)
372372
cd = lj_cdata_new(cts, id, CTSIZE_PTR);
373373
*(void **)cdataptr(cd) = p;
374374
setcdataV(L, tv, cd);
375+
lj_gc_anybarriert(L, cl->cache);
375376
}
376377
}
377378
return tv;

0 commit comments

Comments
 (0)