MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaE_freethread

Function luaE_freethread

freebsd/contrib/openzfs/module/lua/lstate.c:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253
254void luaE_freethread (lua_State *L, lua_State *L1) {
255 LX *l = fromstate(L1);
256 luaF_close(L1, L1->stack); /* close all upvalues for this thread */
257 lua_assert(L1->openupval == NULL);
258 luai_userstatefree(L, L1);
259 freestack(L1);
260 luaM_free(L, l);
261}
262
263
264LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {

Callers 1

freeobjFunction · 0.70

Calls 2

luaF_closeFunction · 0.70
freestackFunction · 0.70

Tested by

no test coverage detected