diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-13 15:43:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-13 15:43:02 -0300 |
commit | 2e297d6ab37c1bb255b6984b91dd92d9080e02c9 (patch) | |
tree | d9031b8d7fbd2670efb6f9a7d24a7a08f24de844 /testes/all.lua | |
parent | fb18346dddcb0400d0396111c56a817a8d4bd8bd (diff) | |
download | lua-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-x | testes/all.lua | 4 |
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') | |||
162 | olddofile('literals.lua') | 162 | olddofile('literals.lua') |
163 | dofile('tpack.lua') | 163 | dofile('tpack.lua') |
164 | assert(dofile('attrib.lua') == 27) | 164 | assert(dofile('attrib.lua') == 27) |
165 | 165 | dofile('gengc.lua') | |
166 | assert(dofile('locals.lua') == 5) | 166 | assert(dofile('locals.lua') == 5) |
167 | dofile('constructs.lua') | 167 | dofile('constructs.lua') |
168 | dofile('code.lua', true) | 168 | dofile('code.lua', true) |