diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-06 15:17:22 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-06 15:17:22 -0300 |
commit | a4f20e3c8b08ad55f40dfe53ace80cbcf67c0f46 (patch) | |
tree | 6364b7770cb3adb03f0f631bd31cb7b306ab3403 | |
parent | 8c583c61a366d90a7c6971c46568bb92522a77e9 (diff) | |
download | lua-a4f20e3c8b08ad55f40dfe53ace80cbcf67c0f46.tar.gz lua-a4f20e3c8b08ad55f40dfe53ace80cbcf67c0f46.tar.bz2 lua-a4f20e3c8b08ad55f40dfe53ace80cbcf67c0f46.zip |
comments
-rw-r--r-- | lgc.h | 27 |
1 files changed, 9 insertions, 18 deletions
@@ -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 | ||