aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/lgc.h b/lgc.h
index 56d5af39..c1d102f9 100644
--- a/lgc.h
+++ b/lgc.h
@@ -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
87size_t luaC_separateudata (lua_State *L, int all); 88size_t luaC_separateudata (lua_State *L, int all);
88void luaC_callGCTM (lua_State *L); 89void luaC_callGCTM (lua_State *L);
89void luaC_sweepall (lua_State *L); 90void luaC_freeall (lua_State *L);
90void luaC_step (lua_State *L); 91void luaC_step (lua_State *L);
91void luaC_fullgc (lua_State *L); 92void luaC_fullgc (lua_State *L);
92void luaC_link (lua_State *L, GCObject *o, lu_byte tt); 93void luaC_link (lua_State *L, GCObject *o, lu_byte tt);