From 390256edf77638f747bc11b1b0862e6154ecfbcb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Mar 2005 13:04:29 -0300 Subject: better name for GC pause --- lstate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 633e4ab6..dcfab01f 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.26 2005/03/18 18:02:04 roberto Exp roberto $ +** $Id: lstate.c,v 2.27 2005/03/18 18:55:45 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -170,8 +170,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->weak = NULL; g->tmudata = NULL; g->totalbytes = sizeof(LG); - g->gcpace = 200; /* 200% (wait memory to double before next collection) */ - g->gcstepmul = 200; /* GC runs `twice the speed' of memory allocation */ + g->gcpause = LUAI_GCPAUSE; + g->gcstepmul = LUAI_GCMUL; g->gcdept = 0; if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { /* memory allocation error: free partial state */ -- cgit v1.2.3-55-g6feb