diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-07-13 16:26:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-07-13 16:26:02 -0300 |
commit | b202669d761660f7d8131bef507e5c48df1ffba7 (patch) | |
tree | ab487409494e505b660445d71928085a2cd1b3ce | |
parent | 1442fd57836851df5b4d67c30d3be77021768a52 (diff) | |
download | lua-github-b202669d761660f7d8131bef507e5c48df1ffba7.tar.gz |
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.
-rw-r--r-- | ldo.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' */ |