diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-30 16:14:26 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-30 16:14:26 -0300 |
| commit | 1bf4faec64aca03e1036235e72675f0617124140 (patch) | |
| tree | dca4218f3085090a27c288ccd11aaf1bdb520905 /ltests.c | |
| parent | 8ef9e8460e775793f760deb28d0c3d10dda31b49 (diff) | |
| download | lua-1bf4faec64aca03e1036235e72675f0617124140.tar.gz lua-1bf4faec64aca03e1036235e72675f0617124140.tar.bz2 lua-1bf4faec64aca03e1036235e72675f0617124140.zip | |
new GC state to sweep 'localgc' list + small changes in sweep control
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 2.150 2013/08/27 18:53:35 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.151 2013/08/27 20:04:00 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -653,7 +653,8 @@ static int gc_local (lua_State *L) { | |||
| 653 | 653 | ||
| 654 | static int gc_state (lua_State *L) { | 654 | static int gc_state (lua_State *L) { |
| 655 | static const char *statenames[] = {"propagate", "atomic", | 655 | static const char *statenames[] = {"propagate", "atomic", |
| 656 | "sweepudata", "sweep", "pause", ""}; | 656 | "sweeplocal", "sweepfin", "sweepall", "sweepmainth", |
| 657 | "pause", ""}; | ||
| 657 | int option = luaL_checkoption(L, 1, "", statenames); | 658 | int option = luaL_checkoption(L, 1, "", statenames); |
| 658 | if (option == GCSpause + 1) { | 659 | if (option == GCSpause + 1) { |
| 659 | lua_pushstring(L, statenames[G(L)->gcstate]); | 660 | lua_pushstring(L, statenames[G(L)->gcstate]); |
