From 2e297d6ab37c1bb255b6984b91dd92d9080e02c9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 13 Jul 2018 15:43:02 -0300 Subject: 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. --- testes/all.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testes/all.lua') 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 @@ #!../lua --- $Id: all.lua,v 1.100 2018/03/09 14:23:48 roberto Exp $ +-- $Id: all.lua $ -- See Copyright Notice at the end of this file @@ -162,7 +162,7 @@ olddofile('strings.lua') olddofile('literals.lua') dofile('tpack.lua') assert(dofile('attrib.lua') == 27) - +dofile('gengc.lua') assert(dofile('locals.lua') == 5) dofile('constructs.lua') dofile('code.lua', true) -- cgit v1.2.3-55-g6feb