diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-22 13:04:29 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-22 13:04:29 -0300 |
| commit | 390256edf77638f747bc11b1b0862e6154ecfbcb (patch) | |
| tree | ad334fdf75a29534f8e7a31f5e1f05b224725a40 /lstate.c | |
| parent | ad24cff0f1108ee8e2c28f72e10da44ea2205c10 (diff) | |
| download | lua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.gz lua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.bz2 lua-390256edf77638f747bc11b1b0862e6154ecfbcb.zip | |
better name for GC pause
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 */ |
