summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-06 15:53:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-06 15:53:42 -0200
commit39a8082f50c7321d75425f08a551a1d331dcea2d (patch)
tree2a942d2647897371dc104b0271783f78cd0415f8 /lstate.c
parent531874f6ce9f47f81294beeeba6cd0c15402411c (diff)
downloadlua-39a8082f50c7321d75425f08a551a1d331dcea2d.tar.gz
lua-39a8082f50c7321d75425f08a551a1d331dcea2d.tar.bz2
lua-39a8082f50c7321d75425f08a551a1d331dcea2d.zip
more options for controling the GC
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index ff5d0376..021b8a68 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.16 2004/11/19 15:52:40 roberto Exp roberto $ 2** $Id: lstate.c,v 2.17 2004/11/24 19:20:21 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*/
@@ -193,6 +193,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
193 setnilvalue(gval(g->dummynode)); 193 setnilvalue(gval(g->dummynode));
194 gnext(g->dummynode) = NULL; 194 gnext(g->dummynode) = NULL;
195 g->totalbytes = sizeof(LG); 195 g->totalbytes = sizeof(LG);
196 g->stepmul = STEPMUL;
197 g->incgc = 1;
196 if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { 198 if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) {
197 /* memory allocation error: free partial state */ 199 /* memory allocation error: free partial state */
198 close_state(L); 200 close_state(L);