mirror of https://github.com/rusefi/lua.git
default for minor collection intervals a little larger
This commit is contained in:
parent
022abc301b
commit
a131eae925
8
lgc.h
8
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
|
** some gc parameters are stored divided by 4 to allow a maximum value
|
||||||
** than 1000 in an 'lu_byte'.
|
** 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)
|
||||||
|
|
Loading…
Reference in New Issue