aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-09-03 11:14:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-09-03 11:14:01 -0300
commit6828f6d42786de735d6696da8cccbb47c8bad347 (patch)
tree4645194f43ebcfbd7a00af35278b1e688148760c /lstate.h
parentdaa5fe3e31d8ca28a8770df135cbad7fa6fdfa4b (diff)
downloadlua-6828f6d42786de735d6696da8cccbb47c8bad347.tar.gz
lua-6828f6d42786de735d6696da8cccbb47c8bad347.tar.bz2
lua-6828f6d42786de735d6696da8cccbb47c8bad347.zip
new parameter 'majorinc' to control frequency of major collections
in generational mode
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 452046fb..0d834801 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.64 2010/04/29 17:31:31 roberto Exp roberto $ 2** $Id: lstate.h,v 2.65 2010/05/03 17:39:48 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*/
@@ -136,6 +136,7 @@ typedef struct global_State {
136 UpVal uvhead; /* head of double-linked list of all open upvalues */ 136 UpVal uvhead; /* head of double-linked list of all open upvalues */
137 Mbuffer buff; /* temporary buffer for string concatenation */ 137 Mbuffer buff; /* temporary buffer for string concatenation */
138 int gcpause; /* size of pause between successive GCs */ 138 int gcpause; /* size of pause between successive GCs */
139 int gcmajorinc; /* how much to wait for a major GC (only in gen. mode) */
139 int gcstepmul; /* GC `granularity' */ 140 int gcstepmul; /* GC `granularity' */
140 lua_CFunction panic; /* to be called in unprotected errors */ 141 lua_CFunction panic; /* to be called in unprotected errors */
141 struct lua_State *mainthread; 142 struct lua_State *mainthread;