aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-11 11:19:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-11 11:19:50 -0300
commit992b6d2712c50ba2a20f161aaaddc7225734c5f1 (patch)
treec50ea227ca0b63da4c494d31e364fb8bf1d04f25 /lgc.h
parent588dfa4ce5f7fa699495a2ee590a57a8305be420 (diff)
downloadlua-992b6d2712c50ba2a20f161aaaddc7225734c5f1.tar.gz
lua-992b6d2712c50ba2a20f161aaaddc7225734c5f1.tar.bz2
lua-992b6d2712c50ba2a20f161aaaddc7225734c5f1.zip
no more 'TESTGRAYBIT' (to free this bit for real uses)
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lgc.h b/lgc.h
index fc62cfd8..d7adf444 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.102 2018/02/19 13:55:34 roberto Exp roberto $ 2** $Id: lgc.h,v 2.102 2018/02/19 20:06:56 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*/
@@ -69,13 +69,14 @@
69 69
70/* 70/*
71** Layout for bit use in 'marked' field. First three bits are 71** Layout for bit use in 'marked' field. First three bits are
72** used for object "age" in generational mode. 72** used for object "age" in generational mode. Last bit is free
73** to be used by respective objects.
73*/ 74*/
74#define WHITE0BIT 3 /* object is white (type 0) */ 75#define WHITE0BIT 3 /* object is white (type 0) */
75#define WHITE1BIT 4 /* object is white (type 1) */ 76#define WHITE1BIT 4 /* object is white (type 1) */
76#define BLACKBIT 5 /* object is black */ 77#define BLACKBIT 5 /* object is black */
77#define FINALIZEDBIT 6 /* object has been marked for finalization */ 78#define FINALIZEDBIT 6 /* object has been marked for finalization */
78#define TESTGRAYBIT 7 /* used by tests (luaL_checkmemory) */ 79
79 80
80 81
81#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) 82#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT)