Run VM events and finalizers in separate state.
Reported by Sergey Kaplun. #1403
This commit is contained in:
@@ -202,6 +202,7 @@ static TValue *cpluaopen(lua_State *L, lua_CFunction dummy, void *ud)
|
||||
#endif
|
||||
lj_trace_initstate(g);
|
||||
lj_err_verify();
|
||||
setgcref(g->vmthref, obj2gco(lj_state_new(L)));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user