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-github-de97177744cee0c81bf9193ce9601a978636a1ea.tar.gz |
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 @@ /* -** $Id: lgc.c,v 2.90 2010/05/06 18:18:07 roberto Exp roberto $ +** $Id: lgc.c,v 2.91 2010/05/07 18:19:36 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -859,9 +859,9 @@ static l_mem singlestep (lua_State *L) { case GCSpause: { if (!isgenerational(g)) markroot(L); /* start a new collection */ - else /* root still marked */ - lua_assert(!iswhite(obj2gco(g->mainthread)) - && !iswhite(gcvalue(&g->l_registry))); + /* in any case, root must be marked */ + lua_assert(!iswhite(obj2gco(g->mainthread)) + && !iswhite(gcvalue(&g->l_registry))); g->gcstate = GCSpropagate; return GCROOTCOST; } |