aboutsummaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
authorMike Pall <mike>2024-03-10 17:26:03 +0100
committerMike Pall <mike>2024-03-10 17:26:03 +0100
commit913df6a94517d31c7be1a6133b8f35a62e51ff7a (patch)
tree43b24744216c5d60fc4832f513fbba2966ad3ff7 /src/lj_api.c
parent0d313b243194a0b8d2399d8b549ca5a0ff234db5 (diff)
parentcae361187e7e1e3545353fb560c032cdace32d5f (diff)
downloadluajit-913df6a94517d31c7be1a6133b8f35a62e51ff7a.tar.gz
luajit-913df6a94517d31c7be1a6133b8f35a62e51ff7a.tar.bz2
luajit-913df6a94517d31c7be1a6133b8f35a62e51ff7a.zip
Merge branch 'master' into v2.1
Diffstat (limited to 'src/lj_api.c')
-rw-r--r--src/lj_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_api.c b/src/lj_api.c
index d4048d79..1ad71678 100644
--- a/src/lj_api.c
+++ b/src/lj_api.c
@@ -1052,6 +1052,7 @@ LUA_API int lua_setmetatable(lua_State *L, int idx)
1052 /* Flush cache, since traces specialize to basemt. But not during __gc. */ 1052 /* Flush cache, since traces specialize to basemt. But not during __gc. */
1053 if (lj_trace_flushall(L)) 1053 if (lj_trace_flushall(L))
1054 lj_err_caller(L, LJ_ERR_NOGCMM); 1054 lj_err_caller(L, LJ_ERR_NOGCMM);
1055 o = index2adr(L, idx); /* Stack may have been reallocated. */
1055 if (tvisbool(o)) { 1056 if (tvisbool(o)) {
1056 /* NOBARRIER: basemt is a GC root. */ 1057 /* NOBARRIER: basemt is a GC root. */
1057 setgcref(basemt_it(g, LJ_TTRUE), obj2gco(mt)); 1058 setgcref(basemt_it(g, LJ_TTRUE), obj2gco(mt));