mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-04 10:50:54 +01:00
Merge c78471a7a5
into 6b33251b89
This commit is contained in:
commit
83e80a6796
2 changed files with 2 additions and 2 deletions
|
@ -443,7 +443,7 @@ static void shrinkstack(lua_State* L)
|
|||
|
||||
if (3 * size_t(s_used) < size_t(L->stacksize) && 2 * (BASIC_STACK_SIZE + EXTRA_STACK) < L->stacksize)
|
||||
luaD_reallocstack(L, L->stacksize / 2, 0); // still big enough...
|
||||
condhardstacktests(luaD_reallocstack(L, s_used));
|
||||
condhardstacktests(luaD_reallocstack(L, s_used, 0));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
#define luaC_checkGC(L) \
|
||||
{ \
|
||||
condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK)); \
|
||||
condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK, 0)); \
|
||||
if (luaC_needsGC(L)) \
|
||||
{ \
|
||||
condhardmemtests(luaC_validate(L), 1); \
|
||||
|
|
Loading…
Add table
Reference in a new issue