diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.95 2010/05/11 20:49:26 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.96 2010/05/17 20:39:31 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 | */ |
@@ -932,7 +932,8 @@ static void generationalcollection (lua_State *L) { | |||
932 | g->lastmajormem = g->totalbytes; /* update control */ | 932 | g->lastmajormem = g->totalbytes; /* update control */ |
933 | } | 933 | } |
934 | else { | 934 | else { |
935 | luaC_runtilstate(L, bitmask(GCSpause)); /* run collection */ | 935 | luaC_runtilstate(L, ~bitmask(GCSpause)); /* run complete cycle */ |
936 | luaC_runtilstate(L, bitmask(GCSpause)); | ||
936 | if (g->totalbytes > g->lastmajormem/100 * g->gcpause) | 937 | if (g->totalbytes > g->lastmajormem/100 * g->gcpause) |
937 | g->lastmajormem = 0; /* signal for a major collection */ | 938 | g->lastmajormem = 0; /* signal for a major collection */ |
938 | } | 939 | } |