aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lgc.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/lgc.h b/lgc.h
index f3b97554..d7b34938 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.35 2010/05/03 17:33:39 roberto Exp roberto $ 2** $Id: lgc.h,v 2.36 2010/05/05 18:53:41 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*/
@@ -71,23 +71,14 @@
71 71
72 72
73 73
74/* 74/* Layout for bit use in `marked' field: */
75** Layout for bit use in `marked' field: 75#define WHITE0BIT 0 /* object is white (type 0) */
76** bit 0 - object is white (type 0) 76#define WHITE1BIT 1 /* object is white (type 1) */
77** bit 1 - object is white (type 1) 77#define BLACKBIT 2 /* object is black */
78** bit 2 - object is black 78#define FINALIZEDBIT 3 /* for userdata: has been finalized */
79** bit 3 - for userdata: has been finalized 79#define SEPARATED 4 /* " ": it's in 'udgc' list or in 'tobefnz' */
80** bit 4 - for userdata: it's in 'udgc' list or in 'tobefnz' 80#define FIXEDBIT 5 /* object is fixed (should not be collected) */
81** bit 5 - object is fixed (should not be collected) 81#define OLDBIT 6 /* object is old (only in generational mode) */
82** bit 6 - object is old (only in generational mode)
83*/
84#define WHITE0BIT 0
85#define WHITE1BIT 1
86#define BLACKBIT 2
87#define FINALIZEDBIT 3
88#define SEPARATED 4
89#define FIXEDBIT 5
90#define OLDBIT 6
91 82
92#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) 83#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT)
93 84