diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-20 17:36:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-20 17:36:44 -0300 |
commit | 2a66b34f720cdfb34e3455eb3dbc7fb8aa931981 (patch) | |
tree | 421a4e68a69f68a1e841680115874cb70b1e2775 /lstate.h | |
parent | 8d0e1ed52f4e5a4368343d3807140397176b577e (diff) | |
download | lua-2a66b34f720cdfb34e3455eb3dbc7fb8aa931981.tar.gz lua-2a66b34f720cdfb34e3455eb3dbc7fb8aa931981.tar.bz2 lua-2a66b34f720cdfb34e3455eb3dbc7fb8aa931981.zip |
revamp of the GC pace control; more like 5.1: any X Kbytes allocated
makes the GC handle f(X) Kbytes of objects
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.76 2012/01/25 21:05:40 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.77 2012/02/01 21:57:15 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 | */ |
@@ -113,7 +113,9 @@ typedef struct global_State { | |||
113 | void *ud; /* auxiliary data to `frealloc' */ | 113 | void *ud; /* auxiliary data to `frealloc' */ |
114 | lu_mem totalbytes; /* number of bytes currently allocated - GCdebt */ | 114 | lu_mem totalbytes; /* number of bytes currently allocated - GCdebt */ |
115 | l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ | 115 | l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ |
116 | lu_mem GCmemtrav; /* memory traversed by the GC */ | ||
116 | lu_mem lastmajormem; /* memory in use after last major collection */ | 117 | lu_mem lastmajormem; /* memory in use after last major collection */ |
118 | lu_mem estimate; | ||
117 | stringtable strt; /* hash table for strings */ | 119 | stringtable strt; /* hash table for strings */ |
118 | TValue l_registry; | 120 | TValue l_registry; |
119 | unsigned int seed; /* randomized seed for hashes */ | 121 | unsigned int seed; /* randomized seed for hashes */ |