commit | 9cdf6b7082c49e6bf7daf8c7c4c649bcaacf9fad | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri Jul 19 09:43:35 2019 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri Jul 19 09:43:35 2019 -0300 |
tree | 6543c7498f1c455cb2520411b17638bae50ca743 | |
parent | 3c1d415bd3fef686b27f853bdf3eaf1f0a9bb0be [diff] |
Some details in 'lmem.c' and 'lgc.c' - Several new comments in 'lmem.c'. - Both 'luaM_growaux_' and 'luaM_shrinkvector_' use 'luaM_saferealloc_' to check for errors. Moreover, the use of 'luaM_saferealloc_' makes 'luaM_shrinkvector_' try again if shrink fails (which can happen now). - In 'checkSizes', save old debt only when needed.