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/gc.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 '')
-rw-r--r-- | testes/gc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/gc.lua b/testes/gc.lua index 9647cd54..05072efd 100644 --- a/testes/gc.lua +++ b/testes/gc.lua | |||
@@ -1,7 +1,7 @@ | |||
1 | -- $Id: gc.lua,v 1.82 2018/03/12 14:19:36 roberto Exp $ | 1 | -- $Id: gc.lua $ |
2 | -- See Copyright Notice in file all.lua | 2 | -- See Copyright Notice in file all.lua |
3 | 3 | ||
4 | print('testing garbage collection') | 4 | print('testing incremental garbage collection') |
5 | 5 | ||
6 | local debug = require"debug" | 6 | local debug = require"debug" |
7 | 7 | ||