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

Function sweepthread

freebsd/contrib/openzfs/module/lua/lgc.c:697–704  ·  view source on GitHub ↗

** sweep the (open) upvalues of a thread and resize its stack and ** list of call-info structures. */

Source from the content-addressed store, hash-verified

695** list of call-info structures.
696*/
697static void sweepthread (lua_State *L, lua_State *L1) {
698 if (L1->stack == NULL) return; /* stack not completely built yet */
699 sweepwholelist(L, &L1->openupval); /* sweep open upvalues */
700 luaE_freeCI(L1); /* free extra CallInfo slots */
701 /* should not change the stack during an emergency gc cycle */
702 if (G(L)->gckind != KGC_EMERGENCY)
703 luaD_shrinkstack(L1);
704}
705
706
707/*

Callers 1

sweeplistFunction · 0.85

Calls 2

luaE_freeCIFunction · 0.85
luaD_shrinkstackFunction · 0.85

Tested by

no test coverage detected