diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-02-11 13:45:30 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-02-11 13:45:30 -0200 |
commit | a73930228aada18cb9300f53dbcc6fafcb75caf9 (patch) | |
tree | d3a63c01e23c1d3c2a930d7d2b4607aaf6cbe559 /lstate.c | |
parent | a76fa251998ea83679cfad24542cf4c1aa3d6131 (diff) | |
download | lua-a73930228aada18cb9300f53dbcc6fafcb75caf9.tar.gz lua-a73930228aada18cb9300f53dbcc6fafcb75caf9.tar.bz2 lua-a73930228aada18cb9300f53dbcc6fafcb75caf9.zip |
more options for 'kinds' of Garbage Collection
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.41 2007/10/29 16:51:20 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.42 2007/10/31 15:41:19 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 | */ |
@@ -160,7 +160,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
160 | L->tt = LUA_TTHREAD; | 160 | L->tt = LUA_TTHREAD; |
161 | g->currentwhite = bit2mask(WHITE0BIT, FIXEDBIT); | 161 | g->currentwhite = bit2mask(WHITE0BIT, FIXEDBIT); |
162 | L->marked = luaC_white(g); | 162 | L->marked = luaC_white(g); |
163 | g->emergencygc = 0; | 163 | g->gckind = KGC_NORMAL; |
164 | g->nCcalls = 0; | 164 | g->nCcalls = 0; |
165 | set2bits(L->marked, FIXEDBIT, SFIXEDBIT); | 165 | set2bits(L->marked, FIXEDBIT, SFIXEDBIT); |
166 | preinit_state(L, g); | 166 | preinit_state(L, g); |