aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-11-18 12:55:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-11-18 12:55:11 -0200
commit366e4af3c909056b383ffab6c45968d7f40d9db7 (patch)
treec712c45a47e9cd09f2b39cc67a49735e7320b47a /lstate.h
parent53c7f861944c5189448b1e5ddafa6a23ee6936e2 (diff)
downloadlua-366e4af3c909056b383ffab6c45968d7f40d9db7.tar.gz
lua-366e4af3c909056b383ffab6c45968d7f40d9db7.tar.bz2
lua-366e4af3c909056b383ffab6c45968d7f40d9db7.zip
towards incremental GC
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 94e9bbfa..864e19c9 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.111 2003/07/16 20:49:02 roberto Exp roberto $ 2** $Id: lstate.h,v 1.112 2003/10/02 20:31:17 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -100,6 +100,8 @@ typedef struct global_State {
100 stringtable strt; /* hash table for strings */ 100 stringtable strt; /* hash table for strings */
101 GCObject *rootgc; /* list of (almost) all collectable objects */ 101 GCObject *rootgc; /* list of (almost) all collectable objects */
102 GCObject *rootudata; /* (separated) list of all userdata */ 102 GCObject *rootudata; /* (separated) list of all userdata */
103 GCObject *gray; /* list of gray objects */
104 GCObject *weak; /* list of weak tables (to be cleared) */
103 GCObject *tmudata; /* list of userdata to be GC */ 105 GCObject *tmudata; /* list of userdata to be GC */
104 lua_Alloc realloc; /* function to reallocate memory */ 106 lua_Alloc realloc; /* function to reallocate memory */
105 void *ud; /* auxiliary data to `realloc' */ 107 void *ud; /* auxiliary data to `realloc' */