diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-14 12:19:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-14 12:19:42 -0200 |
commit | 5be517602e5334573297fe8d421a92eb0184ce86 (patch) | |
tree | a3253a42f85b2aff30ed46e840e8e547f6746a94 /lstate.h | |
parent | d2bda8046c1061c353f9e787e987772b9f96099b (diff) | |
download | lua-5be517602e5334573297fe8d421a92eb0184ce86.tar.gz lua-5be517602e5334573297fe8d421a92eb0184ce86.tar.bz2 lua-5be517602e5334573297fe8d421a92eb0184ce86.zip |
no more generational collector (and no more `noinc' mode)
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.10 2004/12/13 12:15:11 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.11 2005/01/05 18:20:51 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 | */ |
@@ -71,7 +71,6 @@ typedef struct global_State { | |||
71 | void *ud; /* auxiliary data to `realloc' */ | 71 | void *ud; /* auxiliary data to `realloc' */ |
72 | lu_byte currentwhite; | 72 | lu_byte currentwhite; |
73 | lu_byte gcstate; /* state of garbage collector */ | 73 | lu_byte gcstate; /* state of garbage collector */ |
74 | lu_byte gcgenerational; | ||
75 | GCObject *rootgc; /* list of all collectable objects */ | 74 | GCObject *rootgc; /* list of all collectable objects */ |
76 | GCObject *firstudata; /* udata go to the end of `rootgc' */ | 75 | GCObject *firstudata; /* udata go to the end of `rootgc' */ |
77 | GCObject **sweepgc; /* position of sweep in `rootgc' */ | 76 | GCObject **sweepgc; /* position of sweep in `rootgc' */ |
@@ -84,9 +83,9 @@ typedef struct global_State { | |||
84 | lu_mem GCthreshold; | 83 | lu_mem GCthreshold; |
85 | lu_mem totalbytes; /* number of bytes currently allocated */ | 84 | lu_mem totalbytes; /* number of bytes currently allocated */ |
86 | lu_mem estimate; /* an estimate of number of bytes actually in use */ | 85 | lu_mem estimate; /* an estimate of number of bytes actually in use */ |
87 | lu_mem prevestimate; /* previous estimate */ | 86 | lu_mem gcdept; /* how much GC is `behind schedule' */ |
88 | int gcpace; /* relative `speed' of the GC */ | 87 | int gcpace; /* size of pause between successive GCs */ |
89 | int incgc; /* 0 if GC is done non-incrementally */ | 88 | int gcstepmul; /* GC `granularity' */ |
90 | lua_CFunction panic; /* to be called in unprotected errors */ | 89 | lua_CFunction panic; /* to be called in unprotected errors */ |
91 | TValue _registry; | 90 | TValue _registry; |
92 | struct lua_State *mainthread; | 91 | struct lua_State *mainthread; |