diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-13 12:46:38 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-13 12:46:38 -0200 |
commit | de3b1c9b53d74de4f22fe75b801cc57e1ba2840e (patch) | |
tree | 68b9034ce23a2a359a5f6f674dbad05e4b796e6a /lstate.h | |
parent | 733c58595bb57541e38275103fade1330aeb839d (diff) | |
download | lua-de3b1c9b53d74de4f22fe75b801cc57e1ba2840e.tar.gz lua-de3b1c9b53d74de4f22fe75b801cc57e1ba2840e.tar.bz2 lua-de3b1c9b53d74de4f22fe75b801cc57e1ba2840e.zip |
better control for number of finalizers called at each GC cycle
(increases progressively)
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.98 2014/02/11 12:18:12 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.99 2014/02/13 12:11:34 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 | */ |
@@ -125,6 +125,7 @@ typedef struct global_State { | |||
125 | GCObject *tobefnz; /* list of userdata to be GC */ | 125 | GCObject *tobefnz; /* list of userdata to be GC */ |
126 | GCObject *fixedgc; /* list of objects not to be collected */ | 126 | GCObject *fixedgc; /* list of objects not to be collected */ |
127 | Mbuffer buff; /* temporary buffer for string concatenation */ | 127 | Mbuffer buff; /* temporary buffer for string concatenation */ |
128 | unsigned int gcfinnum; /* number of finalizers to call in each GC step */ | ||
128 | int gcpause; /* size of pause between successive GCs */ | 129 | int gcpause; /* size of pause between successive GCs */ |
129 | int gcstepmul; /* GC `granularity' */ | 130 | int gcstepmul; /* GC `granularity' */ |
130 | lua_CFunction panic; /* to be called in unprotected errors */ | 131 | lua_CFunction panic; /* to be called in unprotected errors */ |