Bug fix: GC after resizing stack can shrink it again

Macro 'checkstackGC' was doing a GC step after resizing the stack;
the GC could shrink the stack and undo the resize.
This commit is contained in:
Roberto Ierusalimschy 2020-07-13 16:26:02 -03:00
parent 1442fd5783
commit b202669d76
1 changed files with 1 additions and 1 deletions

2
ldo.h
View File

@ -44,7 +44,7 @@
/* macro to check stack size and GC */
#define checkstackGC(L,fsize) \
luaD_checkstackaux(L, (fsize), (void)0, luaC_checkGC(L))
luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)
/* type of protected functions, to be ran by 'runprotected' */