"barrier" for link prototype->cache changed to be consistent with

GC behavior (link is cleared to preserve invariant)
This commit is contained in:
Roberto Ierusalimschy
2013-08-19 11:18:43 -03:00
parent 8e6b7ef9ab
commit 9eff921f8f
3 changed files with 8 additions and 33 deletions

5
lgc.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.h,v 2.60 2013/08/13 17:36:44 roberto Exp roberto $
** $Id: lgc.h,v 2.61 2013/08/16 18:55:49 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -128,9 +128,6 @@
{ if (nolocal(obj2gco(o)), isblack(obj2gco(p)) && iswhite(obj2gco(o))) \
luaC_barrierback_(L,p); }
#define luaC_barrierproto(L,p,c) \
{ if (nolocal(obj2gco(c)), isblack(obj2gco(p))) luaC_barrierproto_(L,p,c); }
LUAI_FUNC void luaC_freeallobjects (lua_State *L);
LUAI_FUNC void luaC_step (lua_State *L);
LUAI_FUNC void luaC_forcestep (lua_State *L);