commit 08a9c9faa39c27bd7a9fe6080481f21d455e7cd3
parent 84fe52dbeb0f75d31e5c87e801d4bd98ec26ce60
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 26 Jun 2014 15:27:59 -0300
detail (comment)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lapi.c b/lapi.c
@@ -1,5 +1,5 @@
/*
-** $Id: lapi.c,v 2.220 2014/06/24 17:00:13 roberto Exp roberto $
+** $Id: lapi.c,v 2.221 2014/06/26 17:25:11 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -1020,7 +1020,7 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
case LUA_GCSTEP: {
l_mem debt = 1; /* =1 to signal that it did an actual step */
int oldrunning = g->gcrunning;
- g->gcrunning = 1; /* force GC to run */
+ g->gcrunning = 1; /* allow GC to run */
if (data == 0) {
luaE_setdebt(g, -GCSTEPSIZE); /* to do a "small" step */
luaC_step(L);