From 4433dbb5f5ac0bb6118bc49ddf061f194c070814 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 24 Mar 2010 10:07:01 -0300 Subject: userdata with finalizers are kept in a separated list ('udgc'), instead of at the end of 'rootgc' (which was renamed to 'allgc', as it is not "root" in the usual meaning for collectors) --- lstate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index c2fe534a..200ddd69 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.70 2010/03/19 21:04:17 roberto Exp roberto $ +** $Id: lstate.c,v 2.71 2010/03/22 17:45:55 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -264,7 +264,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->panic = NULL; g->version = lua_version(NULL); g->gcstate = GCSpause; - g->rootgc = obj2gco(L); + g->allgc = obj2gco(L); + g->udgc = NULL; g->tobefnz = NULL; g->totalbytes = sizeof(LG); g->gcpause = LUAI_GCPAUSE; -- cgit v1.2.3-55-g6feb