diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-24 10:07:01 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-24 10:07:01 -0300 |
| commit | 4433dbb5f5ac0bb6118bc49ddf061f194c070814 (patch) | |
| tree | 628f9da77c0cf6a80556a9c189f2528a3d7d7ca4 /lstate.c | |
| parent | 5cb128ea540b33dbc6be659d5dfc3c64c57d78d9 (diff) | |
| download | lua-4433dbb5f5ac0bb6118bc49ddf061f194c070814.tar.gz lua-4433dbb5f5ac0bb6118bc49ddf061f194c070814.tar.bz2 lua-4433dbb5f5ac0bb6118bc49ddf061f194c070814.zip | |
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)
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 2.70 2010/03/19 21:04:17 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.71 2010/03/22 17:45:55 roberto Exp roberto $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -264,7 +264,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
| 264 | g->panic = NULL; | 264 | g->panic = NULL; |
| 265 | g->version = lua_version(NULL); | 265 | g->version = lua_version(NULL); |
| 266 | g->gcstate = GCSpause; | 266 | g->gcstate = GCSpause; |
| 267 | g->rootgc = obj2gco(L); | 267 | g->allgc = obj2gco(L); |
| 268 | g->udgc = NULL; | ||
| 268 | g->tobefnz = NULL; | 269 | g->tobefnz = NULL; |
| 269 | g->totalbytes = sizeof(LG); | 270 | g->totalbytes = sizeof(LG); |
| 270 | g->gcpause = LUAI_GCPAUSE; | 271 | g->gcpause = LUAI_GCPAUSE; |
