aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
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)