MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / restore_stack_limit

Function restore_stack_limit

lua/ldo.c:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72static void restore_stack_limit (lua_State *L) {
73 lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK - 1);
74 if (L->size_ci > LUAI_MAXCALLS) { /* there was an overflow? */
75 int inuse = cast_int(L->ci - L->base_ci);
76 if (inuse + 1 < LUAI_MAXCALLS) /* can `undo' overflow? */
77 luaD_reallocCI(L, LUAI_MAXCALLS);
78 }
79}
80
81
82static void resetstack (lua_State *L, int status) {

Callers 2

resetstackFunction · 0.85
luaD_pcallFunction · 0.85

Calls 1

luaD_reallocCIFunction · 0.85

Tested by

no test coverage detected