summaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-10 13:46:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-10 13:46:49 -0300
commitc006f085d98923e505c7fe8909944d3c182f8301 (patch)
tree4ebfc327b86d74ce18e316f24c28e18564c9160b /lgc.h
parenta48e330f37c06ec733234f96421a17e89ec61145 (diff)
downloadlua-github-c006f085d98923e505c7fe8909944d3c182f8301.tar.gz
new macro 'resetoldbit'
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lgc.h b/lgc.h
index c8aed91c..938a1d49 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
/*
-** $Id: lgc.h,v 2.38 2010/05/07 18:08:05 roberto Exp roberto $
+** $Id: lgc.h,v 2.39 2010/05/07 18:43:51 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -80,6 +80,7 @@
#define SEPARATED 4 /* " ": it's in 'udgc' list or in 'tobefnz' */
#define FIXEDBIT 5 /* object is fixed (should not be collected) */
#define OLDBIT 6 /* object is old (only in generational mode) */
+/* bit 7 is currently used by tests (luaL_checkmemory) */
#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT)
@@ -90,6 +91,7 @@
(!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT)))
#define isold(x) testbit((x)->gch.marked, OLDBIT)
+#define resetoldbit(o) resetbit((o)->gch.marked, OLDBIT)
#define otherwhite(g) (g->currentwhite ^ WHITEBITS)
#define isdeadm(ow,m) (!(((m) ^ WHITEBITS) & (ow)))