From 39a8082f50c7321d75425f08a551a1d331dcea2d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 6 Dec 2004 15:53:42 -0200 Subject: more options for controling the GC --- lstate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index ff5d0376..021b8a68 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.16 2004/11/19 15:52:40 roberto Exp roberto $ +** $Id: lstate.c,v 2.17 2004/11/24 19:20:21 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -193,6 +193,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { setnilvalue(gval(g->dummynode)); gnext(g->dummynode) = NULL; g->totalbytes = sizeof(LG); + g->stepmul = STEPMUL; + g->incgc = 1; if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { /* memory allocation error: free partial state */ close_state(L); -- cgit v1.2.3-55-g6feb