diff options
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.5 2004/03/15 21:04:33 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.6 2004/08/10 19:17:23 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 | */ |
@@ -39,12 +39,13 @@ | |||
39 | 39 | ||
40 | /* | 40 | /* |
41 | ** Layout for bit use in `marked' field: | 41 | ** Layout for bit use in `marked' field: |
42 | ** bit 0 - object is gray | 42 | ** bit 0 - object is white (type 0) |
43 | ** bit 1 - object is black | 43 | ** bit 1 - object is white (type 1) |
44 | ** bit 2 - For userdata: is finalized; | 44 | ** bit 2 - object is black |
45 | for tables: has weak keys | 45 | ** bit 3 - for userdata: has been finalized |
46 | ** bit 3 - for tables: has weak values | 46 | ** bit 3 - for tables: has weak keys |
47 | ** bit 4 - object is fixed (should not be collected) | 47 | ** bit 4 - for tables: has weak values |
48 | ** bit 5 - object is fixed (should not be collected) | ||
48 | */ | 49 | */ |
49 | 50 | ||
50 | #define WHITE0BIT 0 | 51 | #define WHITE0BIT 0 |
@@ -86,7 +87,7 @@ | |||
86 | 87 | ||
87 | size_t luaC_separateudata (lua_State *L, int all); | 88 | size_t luaC_separateudata (lua_State *L, int all); |
88 | void luaC_callGCTM (lua_State *L); | 89 | void luaC_callGCTM (lua_State *L); |
89 | void luaC_sweepall (lua_State *L); | 90 | void luaC_freeall (lua_State *L); |
90 | void luaC_step (lua_State *L); | 91 | void luaC_step (lua_State *L); |
91 | void luaC_fullgc (lua_State *L); | 92 | void luaC_fullgc (lua_State *L); |
92 | void luaC_link (lua_State *L, GCObject *o, lu_byte tt); | 93 | void luaC_link (lua_State *L, GCObject *o, lu_byte tt); |