diff options
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.4 2004/05/31 18:51:50 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.5 2004/06/02 19:07:55 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 | */ |
@@ -69,7 +69,9 @@ typedef struct global_State { | |||
69 | stringtable strt; /* hash table for strings */ | 69 | stringtable strt; /* hash table for strings */ |
70 | lua_Alloc realloc; /* function to reallocate memory */ | 70 | lua_Alloc realloc; /* function to reallocate memory */ |
71 | void *ud; /* auxiliary data to `realloc' */ | 71 | void *ud; /* auxiliary data to `realloc' */ |
72 | int currentwhite; | 72 | lu_byte currentwhite; |
73 | lu_byte gcstate; /* state of garbage collector */ | ||
74 | lu_byte gcgenerational; | ||
73 | GCObject *rootgc; /* list of all collectable objects */ | 75 | GCObject *rootgc; /* list of all collectable objects */ |
74 | GCObject *firstudata; /* udata go to the end of `rootgc' */ | 76 | GCObject *firstudata; /* udata go to the end of `rootgc' */ |
75 | GCObject **sweepgc; /* position of sweep in `rootgc' */ | 77 | GCObject **sweepgc; /* position of sweep in `rootgc' */ |
@@ -78,7 +80,6 @@ typedef struct global_State { | |||
78 | GCObject *grayagain; /* list of objects to be traversed atomically */ | 80 | GCObject *grayagain; /* list of objects to be traversed atomically */ |
79 | GCObject *weak; /* list of weak tables (to be cleared) */ | 81 | GCObject *weak; /* list of weak tables (to be cleared) */ |
80 | GCObject *tmudata; /* list of userdata to be GC */ | 82 | GCObject *tmudata; /* list of userdata to be GC */ |
81 | int gcstate; /* state of garbage collector */ | ||
82 | Mbuffer buff; /* temporary buffer for string concatentation */ | 83 | Mbuffer buff; /* temporary buffer for string concatentation */ |
83 | lu_mem GCthreshold; | 84 | lu_mem GCthreshold; |
84 | lu_mem nblocks; /* number of `bytes' currently allocated */ | 85 | lu_mem nblocks; /* number of `bytes' currently allocated */ |