aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-22 13:04:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-22 13:04:29 -0300
commit390256edf77638f747bc11b1b0862e6154ecfbcb (patch)
treead334fdf75a29534f8e7a31f5e1f05b224725a40 /lstate.c
parentad24cff0f1108ee8e2c28f72e10da44ea2205c10 (diff)
downloadlua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.gz
lua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.bz2
lua-390256edf77638f747bc11b1b0862e6154ecfbcb.zip
better name for GC pause
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 633e4ab6..dcfab01f 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.26 2005/03/18 18:02:04 roberto Exp roberto $ 2** $Id: lstate.c,v 2.27 2005/03/18 18:55:45 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*/
@@ -170,8 +170,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
170 g->weak = NULL; 170 g->weak = NULL;
171 g->tmudata = NULL; 171 g->tmudata = NULL;
172 g->totalbytes = sizeof(LG); 172 g->totalbytes = sizeof(LG);
173 g->gcpace = 200; /* 200% (wait memory to double before next collection) */ 173 g->gcpause = LUAI_GCPAUSE;
174 g->gcstepmul = 200; /* GC runs `twice the speed' of memory allocation */ 174 g->gcstepmul = LUAI_GCMUL;
175 g->gcdept = 0; 175 g->gcdept = 0;
176 if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { 176 if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) {
177 /* memory allocation error: free partial state */ 177 /* memory allocation error: free partial state */