aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-30 16:53:28 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-30 16:53:28 -0200
commit4542fb9f78ff72c6bc72be76385f9710ffee867a (patch)
treed61e42e9130445fda7fe8968a6bf17ffc16f5364 /lgc.c
parent80e817719de40823622f0c91288d129293373875 (diff)
downloadlua-4542fb9f78ff72c6bc72be76385f9710ffee867a.tar.gz
lua-4542fb9f78ff72c6bc72be76385f9710ffee867a.tar.bz2
lua-4542fb9f78ff72c6bc72be76385f9710ffee867a.zip
comments (a few extra quotes around identifiers)
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lgc.c b/lgc.c
index f8af048b..30779328 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.197 2014/10/25 11:50:46 roberto Exp roberto $ 2** $Id: lgc.c,v 2.198 2014/10/29 15:02:53 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*/
@@ -975,7 +975,7 @@ static l_mem atomic (lua_State *L) {
975 /* remark occasional upvalues of (maybe) dead threads */ 975 /* remark occasional upvalues of (maybe) dead threads */
976 remarkupvals(g); 976 remarkupvals(g);
977 propagateall(g); /* propagate changes */ 977 propagateall(g); /* propagate changes */
978 work = g->GCmemtrav; /* stop counting (do not recount gray-agains) */ 978 work = g->GCmemtrav; /* stop counting (do not recount 'grayagain') */
979 g->gray = grayagain; 979 g->gray = grayagain;
980 propagateall(g); /* traverse 'grayagain' list */ 980 propagateall(g); /* traverse 'grayagain' list */
981 g->GCmemtrav = 0; /* restart counting */ 981 g->GCmemtrav = 0; /* restart counting */
@@ -995,7 +995,7 @@ static l_mem atomic (lua_State *L) {
995 /* at this point, all resurrected objects are marked. */ 995 /* at this point, all resurrected objects are marked. */
996 /* remove dead objects from weak tables */ 996 /* remove dead objects from weak tables */
997 clearkeys(g, g->ephemeron, NULL); /* clear keys from all ephemeron tables */ 997 clearkeys(g, g->ephemeron, NULL); /* clear keys from all ephemeron tables */
998 clearkeys(g, g->allweak, NULL); /* clear keys from all allweak tables */ 998 clearkeys(g, g->allweak, NULL); /* clear keys from all 'allweak' tables */
999 /* clear values from resurrected weak tables */ 999 /* clear values from resurrected weak tables */
1000 clearvalues(g, g->weak, origweak); 1000 clearvalues(g, g->weak, origweak);
1001 clearvalues(g, g->allweak, origall); 1001 clearvalues(g, g->allweak, origall);
@@ -1125,7 +1125,7 @@ void luaC_step (lua_State *L) {
1125 1125
1126 1126
1127/* 1127/*
1128** Performs a full GC cycle; if "isemergency", set a flag to avoid 1128** Performs a full GC cycle; if 'isemergency', set a flag to avoid
1129** some operations which could change the interpreter state in some 1129** some operations which could change the interpreter state in some
1130** unexpected ways (running finalizers and shrinking some structures). 1130** unexpected ways (running finalizers and shrinking some structures).
1131** Before running the collection, check 'keepinvariant'; if it is true, 1131** Before running the collection, check 'keepinvariant'; if it is true,