diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-05 15:14:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-05 15:14:29 -0200 |
commit | a131eae925cad604ab1bb248e0c2eda83c54bf82 (patch) | |
tree | 97b0ac16dff97bc77e0c24d07b08ce366143c12a /lgc.h | |
parent | 022abc301b5fc7fb5c1bf6833e69cad0e5c32b0c (diff) | |
download | lua-a131eae925cad604ab1bb248e0c2eda83c54bf82.tar.gz lua-a131eae925cad604ab1bb248e0c2eda83c54bf82.tar.bz2 lua-a131eae925cad604ab1bb248e0c2eda83c54bf82.zip |
default for minor collection intervals a little larger
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.99 2017/10/11 12:38:45 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.100 2018/01/28 15:13:26 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -119,14 +119,14 @@ | |||
119 | 119 | ||
120 | /* Default Values for GC parameters */ | 120 | /* Default Values for GC parameters */ |
121 | #define LUAI_GENMAJORMUL 100 | 121 | #define LUAI_GENMAJORMUL 100 |
122 | #define LUAI_GENMINORMUL 12 | 122 | #define LUAI_GENMINORMUL 20 |
123 | 123 | ||
124 | /* wait memory to double before starting new cycle */ | 124 | /* wait memory to double before starting new cycle */ |
125 | #define LUAI_GCPAUSE 200 /* 200% */ | 125 | #define LUAI_GCPAUSE 200 /* 200% */ |
126 | 126 | ||
127 | /* | 127 | /* |
128 | ** gc parameters are stored divided by 4 to allow a maximum value larger | 128 | ** some gc parameters are stored divided by 4 to allow a maximum value |
129 | ** than 1000 in an 'lu_byte'. | 129 | ** larger than 1000 in a 'lu_byte'. |
130 | */ | 130 | */ |
131 | #define getgcparam(p) ((p) * 4) | 131 | #define getgcparam(p) ((p) * 4) |
132 | #define setgcparam(p,v) ((p) = (v) / 4) | 132 | #define setgcparam(p,v) ((p) = (v) / 4) |