浏览代码

default for minor collection intervals a little larger

Roberto Ierusalimschy 7 年之前
父节点
当前提交
a131eae925
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lgc.h

+ 4 - 4
lgc.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lgc.h,v 2.99 2017/10/11 12:38:45 roberto Exp roberto $
+** $Id: lgc.h,v 2.100 2018/01/28 15:13:26 roberto Exp roberto $
 ** Garbage Collector
 ** Garbage Collector
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -119,14 +119,14 @@
 
 
 /* Default Values for GC parameters */
 /* Default Values for GC parameters */
 #define LUAI_GENMAJORMUL         100
 #define LUAI_GENMAJORMUL         100
-#define LUAI_GENMINORMUL         12
+#define LUAI_GENMINORMUL         20
 
 
 /* wait memory to double before starting new cycle */
 /* wait memory to double before starting new cycle */
 #define LUAI_GCPAUSE    200     /* 200% */
 #define LUAI_GCPAUSE    200     /* 200% */
 
 
 /*
 /*
-** gc parameters are stored divided by 4 to allow a maximum value larger
-** than 1000 in an 'lu_byte'.
+** some gc parameters are stored divided by 4 to allow a maximum value
+** larger than 1000 in a 'lu_byte'.
 */
 */
 #define getgcparam(p)	((p) * 4)
 #define getgcparam(p)	((p) * 4)
 #define setgcparam(p,v)	((p) = (v) / 4)
 #define setgcparam(p,v)	((p) = (v) / 4)