aboutsummaryrefslogtreecommitdiff
path: root/testes/all.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-07-13 15:43:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-07-13 15:43:02 -0300
commit2e297d6ab37c1bb255b6984b91dd92d9080e02c9 (patch)
treed9031b8d7fbd2670efb6f9a7d24a7a08f24de844 /testes/all.lua
parentfb18346dddcb0400d0396111c56a817a8d4bd8bd (diff)
downloadlua-2e297d6ab37c1bb255b6984b91dd92d9080e02c9.tar.gz
lua-2e297d6ab37c1bb255b6984b91dd92d9080e02c9.tar.bz2
lua-2e297d6ab37c1bb255b6984b91dd92d9080e02c9.zip
Fixed bug in generational collection of userdata
During generational collection, a userdatum must become gray and go to a gray list after being traversed (like tables), so that 'correctgraylist' can handle it to its next stage. This commit also added minimum tests for the generational collector, including one that would detect this bug.
Diffstat (limited to 'testes/all.lua')
-rwxr-xr-xtestes/all.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/all.lua b/testes/all.lua
index cfe21603..37796254 100755
--- a/testes/all.lua
+++ b/testes/all.lua
@@ -1,5 +1,5 @@
1#!../lua 1#!../lua
2-- $Id: all.lua,v 1.100 2018/03/09 14:23:48 roberto Exp $ 2-- $Id: all.lua $
3-- See Copyright Notice at the end of this file 3-- See Copyright Notice at the end of this file
4 4
5 5
@@ -162,7 +162,7 @@ olddofile('strings.lua')
162olddofile('literals.lua') 162olddofile('literals.lua')
163dofile('tpack.lua') 163dofile('tpack.lua')
164assert(dofile('attrib.lua') == 27) 164assert(dofile('attrib.lua') == 27)
165 165dofile('gengc.lua')
166assert(dofile('locals.lua') == 5) 166assert(dofile('locals.lua') == 5)
167dofile('constructs.lua') 167dofile('constructs.lua')
168dofile('code.lua', true) 168dofile('code.lua', true)