diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | ||