aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-09-15 17:38:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-09-15 17:38:15 -0300
commit0e54d2be365ec77cb455e0d0f3c5c6f9efa6e04c (patch)
tree10c2fa2a836c29a17bbe0a5085f898ac591eeee6 /lgc.h
parent226c57fec0cc2a1b9457ec4204f13c5b7a108cc7 (diff)
downloadlua-0e54d2be365ec77cb455e0d0f3c5c6f9efa6e04c.tar.gz
lua-0e54d2be365ec77cb455e0d0f3c5c6f9efa6e04c.tar.bz2
lua-0e54d2be365ec77cb455e0d0f3c5c6f9efa6e04c.zip
bug: barrier was wrong for generational phase
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lgc.h b/lgc.h
index b4097b05..f8a18782 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.7 2004/08/24 20:12:06 roberto Exp roberto $ 2** $Id: lgc.h,v 2.8 2004/08/30 13:44:44 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*/
@@ -86,6 +86,10 @@
86 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \ 86 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \
87 luaC_barrierf(L,obj2gco(p),obj2gco(o)); } 87 luaC_barrierf(L,obj2gco(p),obj2gco(o)); }
88 88
89#define luaC_objbarriert(L,p,o) \
90 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \
91 luaC_barrierback(L,obj2gco(p),obj2gco(o)); }
92
89size_t luaC_separateudata (lua_State *L, int all); 93size_t luaC_separateudata (lua_State *L, int all);
90void luaC_callGCTM (lua_State *L); 94void luaC_callGCTM (lua_State *L);
91void luaC_freeall (lua_State *L); 95void luaC_freeall (lua_State *L);