summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lapi.c5
-rw-r--r--lgc.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index c43f601e..a8eb128c 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.96 2009/11/05 17:26:00 roberto Exp roberto $ 2** $Id: lapi.c,v 2.97 2009/11/06 17:03:37 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -199,7 +199,8 @@ static void moveto (lua_State *L, TValue *fr, int idx) {
199 if (idx < LUA_GLOBALSINDEX) /* function upvalue? */ 199 if (idx < LUA_GLOBALSINDEX) /* function upvalue? */
200 luaC_barrier(L, curr_func(L), fr); 200 luaC_barrier(L, curr_func(L), fr);
201 } 201 }
202 /* LUA_GLOBALSINDEX does not need gc barrier (threads are never black) */ 202 /* LUA_GLOBALSINDEX and LUA_REGISTRYINDEX do not need gc barrier
203 (collector revisits them before finishing collection) */
203} 204}
204 205
205 206
diff --git a/lgc.c b/lgc.c
index b6bf9d04..91ed52dd 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.59 2009/11/05 17:43:54 roberto Exp roberto $ 2** $Id: lgc.c,v 2.60 2009/11/06 17:06:19 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*/
@@ -709,6 +709,9 @@ void luaC_freeall (lua_State *L) {
709static void atomic (lua_State *L) { 709static void atomic (lua_State *L) {
710 global_State *g = G(L); 710 global_State *g = G(L);
711 size_t udsize; /* total size of userdata to be finalized */ 711 size_t udsize; /* total size of userdata to be finalized */
712 /* global table and registry may be changed by API */
713 markvalue(g, &g->l_gt);
714 markvalue(g, &g->l_registry);
712 /* remark occasional upvalues of (maybe) dead threads */ 715 /* remark occasional upvalues of (maybe) dead threads */
713 g->gcstate = GCSatomic; 716 g->gcstate = GCSatomic;
714 remarkupvals(g); 717 remarkupvals(g);