diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-07 15:43:24 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-07 15:43:24 -0300 |
commit | de97177744cee0c81bf9193ce9601a978636a1ea (patch) | |
tree | c38378f7c3e3a4b89c66593ff7f1a4886ada79fb /lgc.c | |
parent | fa2ddb070acf3c15afe0d721695d7578eeebf4b9 (diff) | |
download | lua-de97177744cee0c81bf9193ce9601a978636a1ea.tar.gz lua-de97177744cee0c81bf9193ce9601a978636a1ea.tar.bz2 lua-de97177744cee0c81bf9193ce9601a978636a1ea.zip |
avoid 'else assert' (which may result in an empty else)
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.90 2010/05/06 18:18:07 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.91 2010/05/07 18:19:36 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -859,9 +859,9 @@ static l_mem singlestep (lua_State *L) { | |||
859 | case GCSpause: { | 859 | case GCSpause: { |
860 | if (!isgenerational(g)) | 860 | if (!isgenerational(g)) |
861 | markroot(L); /* start a new collection */ | 861 | markroot(L); /* start a new collection */ |
862 | else /* root still marked */ | 862 | /* in any case, root must be marked */ |
863 | lua_assert(!iswhite(obj2gco(g->mainthread)) | 863 | lua_assert(!iswhite(obj2gco(g->mainthread)) |
864 | && !iswhite(gcvalue(&g->l_registry))); | 864 | && !iswhite(gcvalue(&g->l_registry))); |
865 | g->gcstate = GCSpropagate; | 865 | g->gcstate = GCSpropagate; |
866 | return GCROOTCOST; | 866 | return GCROOTCOST; |
867 | } | 867 | } |