aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-13 12:46:38 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-13 12:46:38 -0200
commitde3b1c9b53d74de4f22fe75b801cc57e1ba2840e (patch)
tree68b9034ce23a2a359a5f6f674dbad05e4b796e6a /lstate.h
parent733c58595bb57541e38275103fade1330aeb839d (diff)
downloadlua-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 13b2108c..4acdee84 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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 */