a different option for the GC

This commit is contained in:
Roberto Ierusalimschy
2004-12-13 10:15:11 -02:00
parent a56d889f72
commit c6254dceff
7 changed files with 21 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.17 2004/11/24 19:20:21 roberto Exp roberto $
** $Id: lstate.c,v 2.18 2004/12/06 17:53:42 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -193,7 +193,7 @@ 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->gcpace = GCDIV;
g->incgc = 1;
if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) {
/* memory allocation error: free partial state */