diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-05 13:58:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-05 13:58:28 -0300 |
commit | 677d90165ffef728231340c6328e9661824dbc34 (patch) | |
tree | 3338e6f1b0c2f82db84def5751ea418a58fbc31a /lbaselib.c | |
parent | 4244da96bfcf205624487b99b69e9d8dd1857293 (diff) | |
download | lua-677d90165ffef728231340c6328e9661824dbc34.tar.gz lua-677d90165ffef728231340c6328e9661824dbc34.tar.bz2 lua-677d90165ffef728231340c6328e9661824dbc34.zip |
no more generational collection !!!
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.279 2013/07/05 14:39:15 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.280 2013/07/10 17:15:12 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -174,11 +174,9 @@ static int luaB_rawset (lua_State *L) { | |||
174 | 174 | ||
175 | static int luaB_collectgarbage (lua_State *L) { | 175 | static int luaB_collectgarbage (lua_State *L) { |
176 | static const char *const opts[] = {"stop", "restart", "collect", | 176 | static const char *const opts[] = {"stop", "restart", "collect", |
177 | "count", "step", "setpause", "setstepmul", | 177 | "count", "step", "setpause", "setstepmul", "isrunning", NULL}; |
178 | "setmajorinc", "isrunning", "generational", "incremental", NULL}; | ||
179 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, | 178 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, |
180 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, | 179 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, LUA_GCISRUNNING}; |
181 | LUA_GCSETMAJORINC, LUA_GCISRUNNING, LUA_GCGEN, LUA_GCINC}; | ||
182 | int o = optsnum[luaL_checkoption(L, 1, "collect", opts)]; | 180 | int o = optsnum[luaL_checkoption(L, 1, "collect", opts)]; |
183 | int ex = luaL_optint(L, 2, 0); | 181 | int ex = luaL_optint(L, 2, 0); |
184 | int res = lua_gc(L, o, ex); | 182 | int res = lua_gc(L, o, ex); |